mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-09 10:29:25 +00:00
No one should be using the method directly. Assert if they do.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140947 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
405ca137a1
commit
2e6b97bbf8
@ -62,18 +62,7 @@ const char *ARMConstantPoolValue::getModifierText() const {
|
|||||||
|
|
||||||
int ARMConstantPoolValue::getExistingMachineCPValue(MachineConstantPool *CP,
|
int ARMConstantPoolValue::getExistingMachineCPValue(MachineConstantPool *CP,
|
||||||
unsigned Alignment) {
|
unsigned Alignment) {
|
||||||
unsigned AlignMask = Alignment - 1;
|
assert(false && "Shouldn't be calling this directly!");
|
||||||
const std::vector<MachineConstantPoolEntry> Constants = CP->getConstants();
|
|
||||||
for (unsigned i = 0, e = Constants.size(); i != e; ++i) {
|
|
||||||
if (Constants[i].isMachineConstantPoolEntry() &&
|
|
||||||
(Constants[i].getAlignment() & AlignMask) == 0) {
|
|
||||||
ARMConstantPoolValue *CPV =
|
|
||||||
(ARMConstantPoolValue *)Constants[i].Val.MachineCPVal;
|
|
||||||
if (this->equals(CPV))
|
|
||||||
return i;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user