summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-10-01 12:47:34 +0000
committerBill Wendling <isanbard@gmail.com>2011-10-01 12:47:34 +0000
commit2e6b97bbf86d0825a060e190189fae7f884c79c9 (patch)
treef797733e57f4e0d22e687f4ae2e7490addbaf6cb /lib
parent405ca137a1bf5b08fbda3ba086fb013537ce8662 (diff)
downloadllvm-2e6b97bbf86d0825a060e190189fae7f884c79c9.tar.gz
llvm-2e6b97bbf86d0825a060e190189fae7f884c79c9.tar.bz2
llvm-2e6b97bbf86d0825a060e190189fae7f884c79c9.tar.xz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/ARM/ARMConstantPoolValue.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/lib/Target/ARM/ARMConstantPoolValue.cpp b/lib/Target/ARM/ARMConstantPoolValue.cpp
index 729ecc6342..aadfd4779d 100644
--- a/lib/Target/ARM/ARMConstantPoolValue.cpp
+++ b/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;
}