mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-26 06:04:47 +00:00
Use getOffset() instead.
llvm-svn: 30327
This commit is contained in:
parent
3bd61a0be5
commit
571e7f730e
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user