[llvm-commits] [llvm] r119068 - in /llvm/trunk/lib/Target/ARM: ARMMCInstLower.cpp ARMMCInstLower.h

Chris Lattner sabre at nondot.org
Sun Nov 14 12:41:53 PST 2010


Author: lattner
Date: Sun Nov 14 14:41:53 2010
New Revision: 119068

URL: http://llvm.org/viewvc/llvm-project?rev=119068&view=rev
Log:
more shrinkification

Modified:
    llvm/trunk/lib/Target/ARM/ARMMCInstLower.cpp
    llvm/trunk/lib/Target/ARM/ARMMCInstLower.h

Modified: llvm/trunk/lib/Target/ARM/ARMMCInstLower.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMMCInstLower.cpp?rev=119068&r1=119067&r2=119068&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMMCInstLower.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMMCInstLower.cpp Sun Nov 14 14:41:53 2010
@@ -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 @@
                        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, 

Modified: llvm/trunk/lib/Target/ARM/ARMMCInstLower.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMMCInstLower.h?rev=119068&r1=119067&r2=119068&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMMCInstLower.h (original)
+++ llvm/trunk/lib/Target/ARM/ARMMCInstLower.h Sun Nov 14 14:41:53 2010
@@ -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 @@
   void Lower(const MachineInstr *MI, MCInst &OutMI) const;
 
 private:
-  MCSymbol *GetGlobalAddressSymbol(const GlobalValue *GV) const;
   MCOperand GetSymbolRef(const MachineOperand &MO, const MCSymbol *Sym) const;
 };
 





More information about the llvm-commits mailing list