more shrinkification
[oota-llvm.git] / lib / Target / ARM / ARMMCInstLower.cpp
index d9c5bcd4f4888f846642a9b6161098d428f32766..e500ca827258c213f12e7861766509f6255b311c 100644 (file)
 #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,