From 18442f55432b31ce165701d1553d93c34bfa4feb Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 14 Nov 2010 20:41:53 +0000 Subject: more shrinkification llvm-svn: 119068 --- llvm/lib/Target/ARM/ARMMCInstLower.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'llvm/lib/Target/ARM/ARMMCInstLower.cpp') 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, -- cgit v1.2.3