forked from OSchip/llvm-project
Fix these comments to reflect current reality. Surprisingly,
MachineConstantPool::getConstantPoolIndex actually expects a log2-encoded alignment. llvm-svn: 56248
This commit is contained in:
parent
dc5f5cbe59
commit
5cf6120a7c
|
@ -122,7 +122,8 @@ public:
|
||||||
unsigned getConstantPoolAlignment() const { return PoolAlignment; }
|
unsigned getConstantPoolAlignment() const { return PoolAlignment; }
|
||||||
|
|
||||||
/// getConstantPoolIndex - Create a new entry in the constant pool or return
|
/// 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(Constant *C, unsigned Alignment);
|
||||||
unsigned getConstantPoolIndex(MachineConstantPoolValue *V,unsigned Alignment);
|
unsigned getConstantPoolIndex(MachineConstantPoolValue *V,unsigned Alignment);
|
||||||
|
|
||||||
|
|
|
@ -479,7 +479,8 @@ MachineConstantPool::~MachineConstantPool() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// getConstantPoolIndex - Create a new entry in the constant pool or return
|
/// 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 MachineConstantPool::getConstantPoolIndex(Constant *C,
|
||||||
unsigned Alignment) {
|
unsigned Alignment) {
|
||||||
|
|
Loading…
Reference in New Issue