mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
make asmprinter optional, even though passing in null will cause things to explode right now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108955 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -34,10 +34,12 @@ class LLVM_LIBRARY_VISIBILITY X86MCInstLower {
|
||||
const TargetMachine &TM;
|
||||
const MCAsmInfo &MAI;
|
||||
|
||||
X86AsmPrinter &AsmPrinter;
|
||||
/// AsmPrinter - This is the asmprinter when emission is actually happening,
|
||||
/// or null if an instruction is being lowered for some other reason.
|
||||
X86AsmPrinter *AsmPrinter;
|
||||
public:
|
||||
X86MCInstLower(MCContext &ctx, Mangler *mang, const MachineFunction &MF,
|
||||
X86AsmPrinter &asmprinter);
|
||||
X86MCInstLower(Mangler *mang, const MachineFunction &MF,
|
||||
X86AsmPrinter *asmprinter);
|
||||
|
||||
void Lower(const MachineInstr *MI, MCInst &OutMI) const;
|
||||
|
||||
|
Reference in New Issue
Block a user