mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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:
parent
c0115b5ca1
commit
cb63ecba31
@ -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()) {
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user