mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Use getOffset() instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30327 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -381,7 +381,7 @@ unsigned MachineConstantPool::getConstantPoolIndex(Constant *C,
|
|||||||
|
|
||||||
unsigned Offset = 0;
|
unsigned Offset = 0;
|
||||||
if (!Constants.empty()) {
|
if (!Constants.empty()) {
|
||||||
Offset = Constants.back().Offset;
|
Offset = Constants.back().getOffset();
|
||||||
Offset += TD->getTypeSize(Constants.back().getType());
|
Offset += TD->getTypeSize(Constants.back().getType());
|
||||||
Offset = (Offset+AlignMask)&~AlignMask;
|
Offset = (Offset+AlignMask)&~AlignMask;
|
||||||
}
|
}
|
||||||
@@ -405,7 +405,7 @@ unsigned MachineConstantPool::getConstantPoolIndex(MachineConstantPoolValue *V,
|
|||||||
|
|
||||||
unsigned Offset = 0;
|
unsigned Offset = 0;
|
||||||
if (!Constants.empty()) {
|
if (!Constants.empty()) {
|
||||||
Offset = Constants.back().Offset;
|
Offset = Constants.back().getOffset();
|
||||||
Offset += TD->getTypeSize(Constants.back().getType());
|
Offset += TD->getTypeSize(Constants.back().getType());
|
||||||
Offset = (Offset+AlignMask)&~AlignMask;
|
Offset = (Offset+AlignMask)&~AlignMask;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user