diff options
author | Dan Gohman <gohman@apple.com> | 2008-09-16 20:45:53 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-09-16 20:45:53 +0000 |
commit | 05ae98346a190d74c2c8799c3af2f8ca23e47c27 (patch) | |
tree | f0057ad1e95aed49cd77a10301e750dffc081ad6 | |
parent | 70ff4cf1baf8cce04b38752ea485425782fb07b8 (diff) |
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
-rw-r--r-- | include/llvm/CodeGen/MachineConstantPool.h | 3 | ||||
-rw-r--r-- | lib/CodeGen/MachineFunction.cpp | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/MachineConstantPool.h b/include/llvm/CodeGen/MachineConstantPool.h index 9db68319e8..280d54dbf8 100644 --- a/include/llvm/CodeGen/MachineConstantPool.h +++ b/include/llvm/CodeGen/MachineConstantPool.h @@ -122,7 +122,8 @@ public: unsigned getConstantPoolAlignment() const { return PoolAlignment; } /// 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 getConstantPoolIndex(Constant *C, unsigned Alignment); unsigned getConstantPoolIndex(MachineConstantPoolValue *V,unsigned Alignment); 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) { |