diff options
author | Chris Lattner <sabre@nondot.org> | 2010-07-20 22:35:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-07-20 22:35:40 +0000 |
commit | cb63ecba312194f7f9b53703ded8f0102141a02d (patch) | |
tree | cb78e3dcf41904bceb7e5f6e85dffe06a55a669f /lib/Target/X86 | |
parent | c0115b5ca16af761199f17bf496403a5c7b710ec (diff) | |
download | external_llvm-cb63ecba312194f7f9b53703ded8f0102141a02d.zip external_llvm-cb63ecba312194f7f9b53703ded8f0102141a02d.tar.gz external_llvm-cb63ecba312194f7f9b53703ded8f0102141a02d.tar.bz2 |
continue pushing dependencies around.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108952 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86')
-rw-r--r-- | lib/Target/X86/X86MCInstLower.cpp | 10 | ||||
-rw-r--r-- | lib/Target/X86/X86MCInstLower.h | 7 |
2 files changed, 9 insertions, 8 deletions
diff --git a/lib/Target/X86/X86MCInstLower.cpp b/lib/Target/X86/X86MCInstLower.cpp index 8def738..d3933a7 100644 --- a/lib/Target/X86/X86MCInstLower.cpp +++ b/lib/Target/X86/X86MCInstLower.cpp @@ -29,10 +29,10 @@ using namespace llvm; X86MCInstLower::X86MCInstLower(MCContext &ctx, Mangler *mang, - X86AsmPrinter &asmprinter, - const TargetMachine &tm) -: Ctx(ctx), Mang(mang), AsmPrinter(asmprinter), MF(*AsmPrinter.MF), - TM(tm), MAI(*TM.getMCAsmInfo()) {} + const MachineFunction &mf, + X86AsmPrinter &asmprinter) +: Ctx(ctx), Mang(mang), MF(mf), TM(mf.getTarget()), MAI(*TM.getMCAsmInfo()), + AsmPrinter(asmprinter) {} MachineModuleInfoMachO &X86MCInstLower::getMachOMMI() const { return MF.getMMI().getObjFileInfo<MachineModuleInfoMachO>(); @@ -505,7 +505,7 @@ void X86MCInstLower::Lower(const MachineInstr *MI, MCInst &OutMI) const { void X86AsmPrinter::EmitInstruction(const MachineInstr *MI) { - X86MCInstLower MCInstLowering(OutContext, Mang, *this, TM); + X86MCInstLower MCInstLowering(OutContext, Mang, *MF, *this); switch (MI->getOpcode()) { case TargetOpcode::DBG_VALUE: if (isVerbose() && OutStreamer.hasRawTextSupport()) { diff --git a/lib/Target/X86/X86MCInstLower.h b/lib/Target/X86/X86MCInstLower.h index 8bfa4c8..a1b826d 100644 --- a/lib/Target/X86/X86MCInstLower.h +++ b/lib/Target/X86/X86MCInstLower.h @@ -30,13 +30,14 @@ namespace llvm { class LLVM_LIBRARY_VISIBILITY X86MCInstLower { MCContext &Ctx; Mangler *Mang; - X86AsmPrinter &AsmPrinter; const MachineFunction &MF; const TargetMachine &TM; const MCAsmInfo &MAI; + + X86AsmPrinter &AsmPrinter; public: - X86MCInstLower(MCContext &ctx, Mangler *mang, X86AsmPrinter &asmprinter, - const TargetMachine &TM); + X86MCInstLower(MCContext &ctx, Mangler *mang, const MachineFunction &MF, + X86AsmPrinter &asmprinter); void Lower(const MachineInstr *MI, MCInst &OutMI) const; |