diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-10-01 08:02:05 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-10-01 08:02:05 +0000 |
commit | d115c4d300049e44fb2b87b3236a715fa1dcb63a (patch) | |
tree | f49f51d8c5bbbf18759054b92fe699fafbd3a474 /llvm/lib/Target/ARM/ARMConstantPoolValue.cpp | |
parent | 7753d66468faba90059031833c294df672f93942 (diff) | |
download | bcm5719-llvm-d115c4d300049e44fb2b87b3236a715fa1dcb63a.tar.gz bcm5719-llvm-d115c4d300049e44fb2b87b3236a715fa1dcb63a.zip |
Remove now dead methods and ivar from ARMConstantPoolValue.
llvm-svn: 140937
Diffstat (limited to 'llvm/lib/Target/ARM/ARMConstantPoolValue.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMConstantPoolValue.cpp | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/llvm/lib/Target/ARM/ARMConstantPoolValue.cpp b/llvm/lib/Target/ARM/ARMConstantPoolValue.cpp index 2d21e7fcf28..1061c6a0b23 100644 --- a/llvm/lib/Target/ARM/ARMConstantPoolValue.cpp +++ b/llvm/lib/Target/ARM/ARMConstantPoolValue.cpp @@ -35,15 +35,6 @@ ARMConstantPoolValue::ARMConstantPoolValue(Type *Ty, unsigned id, PCAdjust(PCAdj), Modifier(modifier), AddCurrentAddress(addCurrentAddress) {} -ARMConstantPoolValue::ARMConstantPoolValue(const Constant *cval, unsigned id, - ARMCP::ARMCPKind K, - unsigned char PCAdj, - ARMCP::ARMCPModifier Modif, - bool AddCA) - : MachineConstantPoolValue((Type*)cval->getType()), - CVal(cval), S(NULL), LabelId(id), Kind(K), PCAdjust(PCAdj), - Modifier(Modif), AddCurrentAddress(AddCA) {} - ARMConstantPoolValue::ARMConstantPoolValue(LLVMContext &C, const MachineBasicBlock *mbb, unsigned id, @@ -52,7 +43,7 @@ ARMConstantPoolValue::ARMConstantPoolValue(LLVMContext &C, ARMCP::ARMCPModifier Modif, bool AddCA) : MachineConstantPoolValue((Type*)Type::getInt8PtrTy(C)), - CVal(NULL), MBB(mbb), S(NULL), LabelId(id), Kind(K), PCAdjust(PCAdj), + MBB(mbb), S(NULL), LabelId(id), Kind(K), PCAdjust(PCAdj), Modifier(Modif), AddCurrentAddress(AddCA) {} ARMConstantPoolValue::ARMConstantPoolValue(LLVMContext &C, @@ -61,23 +52,9 @@ ARMConstantPoolValue::ARMConstantPoolValue(LLVMContext &C, ARMCP::ARMCPModifier Modif, bool AddCA) : MachineConstantPoolValue((Type*)Type::getInt32Ty(C)), - CVal(NULL), S(strdup(s)), LabelId(id), Kind(ARMCP::CPExtSymbol), + S(strdup(s)), LabelId(id), Kind(ARMCP::CPExtSymbol), PCAdjust(PCAdj), Modifier(Modif), AddCurrentAddress(AddCA) {} -ARMConstantPoolValue::ARMConstantPoolValue(const GlobalValue *gv, - ARMCP::ARMCPModifier Modif) - : MachineConstantPoolValue((Type*)Type::getInt32Ty(gv->getContext())), - CVal(gv), S(NULL), LabelId(0), Kind(ARMCP::CPValue), PCAdjust(0), - Modifier(Modif), AddCurrentAddress(false) {} - -const GlobalValue *ARMConstantPoolValue::getGV() const { - return dyn_cast_or_null<GlobalValue>(CVal); -} - -const BlockAddress *ARMConstantPoolValue::getBlockAddress() const { - return dyn_cast_or_null<BlockAddress>(CVal); -} - const MachineBasicBlock *ARMConstantPoolValue::getMBB() const { return MBB; } @@ -156,9 +133,7 @@ void ARMConstantPoolValue::dump() const { } void ARMConstantPoolValue::print(raw_ostream &O) const { - if (CVal) - O << CVal->getName(); - else if (MBB) + if (MBB) O << ""; else O << S; |