[llvm-commits] [llvm] r108949 - in /llvm/trunk/lib/Target/X86: X86MCInstLower.cpp X86MCInstLower.h

Chris Lattner sabre at nondot.org
Tue Jul 20 15:26:07 PDT 2010


Author: lattner
Date: Tue Jul 20 17:26:07 2010
New Revision: 108949

URL: http://llvm.org/viewvc/llvm-project?rev=108949&view=rev
Log:
pass around MF, not MMI.

Modified:
    llvm/trunk/lib/Target/X86/X86MCInstLower.cpp
    llvm/trunk/lib/Target/X86/X86MCInstLower.h

Modified: llvm/trunk/lib/Target/X86/X86MCInstLower.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86MCInstLower.cpp?rev=108949&r1=108948&r2=108949&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86MCInstLower.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86MCInstLower.cpp Tue Jul 20 17:26:07 2010
@@ -30,17 +30,17 @@
 
 X86MCInstLower::X86MCInstLower(MCContext &ctx, Mangler *mang,
                                X86AsmPrinter &asmprinter)
-: Ctx(ctx), Mang(mang), AsmPrinter(asmprinter), MMI(AsmPrinter.MMI) {}
+: Ctx(ctx), Mang(mang), AsmPrinter(asmprinter), MF(*AsmPrinter.MF) {}
 
 MachineModuleInfoMachO &X86MCInstLower::getMachOMMI() const {
-  return MMI->getObjFileInfo<MachineModuleInfoMachO>(); 
+  return MF.getMMI().getObjFileInfo<MachineModuleInfoMachO>();
 }
 
 
 MCSymbol *X86MCInstLower::GetPICBaseSymbol() const {
   const TargetLowering *TLI = AsmPrinter.TM.getTargetLowering();
   return static_cast<const X86TargetLowering*>(TLI)->
-    getPICBaseSymbol(AsmPrinter.MF, Ctx);
+    getPICBaseSymbol(&MF, Ctx);
 }
 
 /// GetSymbolFromOperand - Lower an MO_GlobalAddress or MO_ExternalSymbol

Modified: llvm/trunk/lib/Target/X86/X86MCInstLower.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86MCInstLower.h?rev=108949&r1=108948&r2=108949&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86MCInstLower.h (original)
+++ llvm/trunk/lib/Target/X86/X86MCInstLower.h Tue Jul 20 17:26:07 2010
@@ -18,7 +18,7 @@
   class MCOperand;
   class MCSymbol;
   class MachineInstr;
-  class MachineModuleInfo;
+  class MachineFunction;
   class MachineModuleInfoMachO;
   class MachineOperand;
   class Mangler;
@@ -29,7 +29,7 @@
   MCContext &Ctx;
   Mangler *Mang;
   X86AsmPrinter &AsmPrinter;
-  MachineModuleInfo *MMI;
+  const MachineFunction &MF;
 public:
   X86MCInstLower(MCContext &ctx, Mangler *mang, X86AsmPrinter &asmprinter);
   





More information about the llvm-commits mailing list