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 /include/llvm/CodeGen/MachineConstantPool.h | |
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
Diffstat (limited to 'include/llvm/CodeGen/MachineConstantPool.h')
-rw-r--r-- | include/llvm/CodeGen/MachineConstantPool.h | 3 |
1 files changed, 2 insertions, 1 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); |