Use getOffset() instead.

llvm-svn: 30327
This commit is contained in:
Evan Cheng 2006-09-14 07:41:12 +00:00
parent 3bd61a0be5
commit 571e7f730e

View File

@ -381,7 +381,7 @@ unsigned MachineConstantPool::getConstantPoolIndex(Constant *C,
unsigned Offset = 0;
if (!Constants.empty()) {
Offset = Constants.back().Offset;
Offset = Constants.back().getOffset();
Offset += TD->getTypeSize(Constants.back().getType());
Offset = (Offset+AlignMask)&~AlignMask;
}
@ -405,7 +405,7 @@ unsigned MachineConstantPool::getConstantPoolIndex(MachineConstantPoolValue *V,
unsigned Offset = 0;
if (!Constants.empty()) {
Offset = Constants.back().Offset;
Offset = Constants.back().getOffset();
Offset += TD->getTypeSize(Constants.back().getType());
Offset = (Offset+AlignMask)&~AlignMask;
}