diff options
author | Chris Lattner <sabre@nondot.org> | 2010-07-20 22:45:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-07-20 22:45:33 +0000 |
commit | 6e8154354fd879d64c2406131370d61a6b123103 (patch) | |
tree | d99768d859968a41c1ccdc25190b58a8bfbcc3a4 /lib/Target/X86/X86MCInstLower.h | |
parent | 98cfb53af473d10bedf3cdc8d4cc62497d086186 (diff) | |
download | external_llvm-6e8154354fd879d64c2406131370d61a6b123103.zip external_llvm-6e8154354fd879d64c2406131370d61a6b123103.tar.gz external_llvm-6e8154354fd879d64c2406131370d61a6b123103.tar.bz2 |
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
Diffstat (limited to 'lib/Target/X86/X86MCInstLower.h')
-rw-r--r-- | lib/Target/X86/X86MCInstLower.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Target/X86/X86MCInstLower.h b/lib/Target/X86/X86MCInstLower.h index a1b826d..0d493c4 100644 --- a/lib/Target/X86/X86MCInstLower.h +++ b/lib/Target/X86/X86MCInstLower.h @@ -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; |