diff options
author | Chris Lattner <sabre@nondot.org> | 2010-11-14 20:41:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-11-14 20:41:53 +0000 |
commit | 18442f55432b31ce165701d1553d93c34bfa4feb (patch) | |
tree | 14477b3e2dfb2d5f22d2391b1c2d1e9048cdc640 /llvm/lib/Target/ARM | |
parent | 3040e8c69bb781eb8db0101e3b463078bd5d8973 (diff) | |
download | bcm5719-llvm-18442f55432b31ce165701d1553d93c34bfa4feb.tar.gz bcm5719-llvm-18442f55432b31ce165701d1553d93c34bfa4feb.zip |
more shrinkification
llvm-svn: 119068
Diffstat (limited to 'llvm/lib/Target/ARM')
-rw-r--r-- | llvm/lib/Target/ARM/ARMMCInstLower.cpp | 6 | ||||
-rw-r--r-- | llvm/lib/Target/ARM/ARMMCInstLower.h | 5 |
2 files changed, 1 insertions, 10 deletions
diff --git a/llvm/lib/Target/ARM/ARMMCInstLower.cpp b/llvm/lib/Target/ARM/ARMMCInstLower.cpp index d9c5bcd4f48..e500ca82725 100644 --- a/llvm/lib/Target/ARM/ARMMCInstLower.cpp +++ b/llvm/lib/Target/ARM/ARMMCInstLower.cpp @@ -26,10 +26,6 @@ #include "llvm/ADT/SmallString.h" using namespace llvm; -MCSymbol *ARMMCInstLower::GetGlobalAddressSymbol(const GlobalValue *GV) const { - return Printer.Mang->getSymbol(GV); -} - MCOperand ARMMCInstLower:: GetSymbolRef(const MachineOperand &MO, const MCSymbol *Symbol) const { const MCExpr *Expr; @@ -82,7 +78,7 @@ void ARMMCInstLower::Lower(const MachineInstr *MI, MCInst &OutMI) const { MO.getMBB()->getSymbol(), Ctx)); break; case MachineOperand::MO_GlobalAddress: - MCOp = GetSymbolRef(MO, GetGlobalAddressSymbol(MO.getGlobal())); + MCOp = GetSymbolRef(MO, Printer.Mang->getSymbol(MO.getGlobal())); break; case MachineOperand::MO_ExternalSymbol: MCOp = GetSymbolRef(MO, diff --git a/llvm/lib/Target/ARM/ARMMCInstLower.h b/llvm/lib/Target/ARM/ARMMCInstLower.h index 578590ee0d3..caab7e942b4 100644 --- a/llvm/lib/Target/ARM/ARMMCInstLower.h +++ b/llvm/lib/Target/ARM/ARMMCInstLower.h @@ -14,18 +14,14 @@ namespace llvm { class AsmPrinter; - class GlobalValue; class MCAsmInfo; class MCContext; class MCInst; class MCOperand; class MCSymbol; - class MCSymbolRefExpr; class MachineInstr; - class MachineModuleInfoMachO; class MachineOperand; class Mangler; - //class ARMSubtarget; /// ARMMCInstLower - This class is used to lower an MachineInstr into an MCInst. class LLVM_LIBRARY_VISIBILITY ARMMCInstLower { @@ -39,7 +35,6 @@ public: void Lower(const MachineInstr *MI, MCInst &OutMI) const; private: - MCSymbol *GetGlobalAddressSymbol(const GlobalValue *GV) const; MCOperand GetSymbolRef(const MachineOperand &MO, const MCSymbol *Sym) const; }; |