continue pushing dependencies around.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108952 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2010-07-20 22:35:40 +00:00
parent c0115b5ca1
commit cb63ecba31
2 changed files with 9 additions and 8 deletions

View File

@ -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()) {

View File

@ -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;