diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-10-01 12:47:34 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-10-01 12:47:34 +0000 |
commit | d072b73d78a1ca8e13796e320acd37c08acb95fd (patch) | |
tree | cb0b0ca8cd483a38a33bc359495865d92719ee53 | |
parent | f977ff5fb5cc0b52942973aec7306d1634771512 (diff) | |
download | bcm5719-llvm-d072b73d78a1ca8e13796e320acd37c08acb95fd.tar.gz bcm5719-llvm-d072b73d78a1ca8e13796e320acd37c08acb95fd.zip |
No one should be using the method directly. Assert if they do.
llvm-svn: 140947
-rw-r--r-- | llvm/lib/Target/ARM/ARMConstantPoolValue.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/llvm/lib/Target/ARM/ARMConstantPoolValue.cpp b/llvm/lib/Target/ARM/ARMConstantPoolValue.cpp index 729ecc63425..aadfd4779db 100644 --- a/llvm/lib/Target/ARM/ARMConstantPoolValue.cpp +++ b/llvm/lib/Target/ARM/ARMConstantPoolValue.cpp @@ -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; } |