aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86MCInstLower.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-07-20 22:45:33 +0000
committerChris Lattner <sabre@nondot.org>2010-07-20 22:45:33 +0000
commit6e8154354fd879d64c2406131370d61a6b123103 (patch)
treed99768d859968a41c1ccdc25190b58a8bfbcc3a4 /lib/Target/X86/X86MCInstLower.h
parent98cfb53af473d10bedf3cdc8d4cc62497d086186 (diff)
downloadexternal_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.h8
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;