[llvm-commits] [llvm] r140947 - /llvm/trunk/lib/Target/ARM/ARMConstantPoolValue.cpp
Bill Wendling
isanbard at gmail.com
Sat Oct 1 05:47:38 PDT 2011
Author: void
Date: Sat Oct 1 07:47:34 2011
New Revision: 140947
URL: http://llvm.org/viewvc/llvm-project?rev=140947&view=rev
Log:
No one should be using the method directly. Assert if they do.
Modified:
llvm/trunk/lib/Target/ARM/ARMConstantPoolValue.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMConstantPoolValue.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMConstantPoolValue.cpp?rev=140947&r1=140946&r2=140947&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMConstantPoolValue.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMConstantPoolValue.cpp Sat Oct 1 07:47:34 2011
@@ -62,18 +62,7 @@
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;
}
More information about the llvm-commits
mailing list