more shrinkification
authorChris Lattner <sabre@nondot.org>
Sun, 14 Nov 2010 20:41:53 +0000 (20:41 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 14 Nov 2010 20:41:53 +0000 (20:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119068 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMMCInstLower.cpp
lib/Target/ARM/ARMMCInstLower.h

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, 
index 578590ee0d3015baf7cd71a29ad5339e611d1fce..caab7e942b4c27b4207583d8dd7c9adef0636aaa 100644 (file)
 
 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;
 };