mirror of
https://github.com/intel/llvm.git
synced 2026-01-23 07:58:23 +08:00
No one should be using the method directly. Assert if they do.
llvm-svn: 140947
This commit is contained in:
@@ -62,18 +62,7 @@ const char *ARMConstantPoolValue::getModifierText() const {
|
||||
|
||||
int ARMConstantPoolValue::getExistingMachineCPValue(MachineConstantPool *CP,
|
||||
unsigned Alignment) {
|
||||
unsigned AlignMask = Alignment - 1;
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
assert(false && "Shouldn't be calling this directly!");
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user