summaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-09-16 20:45:53 +0000
committerDan Gohman <gohman@apple.com>2008-09-16 20:45:53 +0000
commit05ae98346a190d74c2c8799c3af2f8ca23e47c27 (patch)
treef0057ad1e95aed49cd77a10301e750dffc081ad6 /lib/CodeGen
parent70ff4cf1baf8cce04b38752ea485425782fb07b8 (diff)
downloadllvm-05ae98346a190d74c2c8799c3af2f8ca23e47c27.tar.gz
llvm-05ae98346a190d74c2c8799c3af2f8ca23e47c27.tar.bz2
llvm-05ae98346a190d74c2c8799c3af2f8ca23e47c27.tar.xz
Fix these comments to reflect current reality. Surprisingly,
MachineConstantPool::getConstantPoolIndex actually expects a log2-encoded alignment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56248 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/MachineFunction.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineFunction.cpp b/lib/CodeGen/MachineFunction.cpp
index 5aade03031..bbc69a9623 100644
--- a/lib/CodeGen/MachineFunction.cpp
+++ b/lib/CodeGen/MachineFunction.cpp
@@ -479,7 +479,8 @@ MachineConstantPool::~MachineConstantPool() {
}
/// getConstantPoolIndex - Create a new entry in the constant pool or return
-/// an existing one. User must specify an alignment in bytes for the object.
+/// an existing one. User must specify the log2 of the minimum required
+/// alignment for the object.
///
unsigned MachineConstantPool::getConstantPoolIndex(Constant *C,
unsigned Alignment) {