diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-03-21 04:13:46 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-03-21 04:13:46 +0000 |
commit | 00f0cddfd47ec852db8a5b609ce44e513577e979 (patch) | |
tree | 90a1cebb90d52f0964ce9cac228c4f159ac06917 /llvm/lib/Target/X86/InstPrinter/X86IntelInstPrinter.h | |
parent | 701822a48e4c82c5a08f97fce97da683f6e29105 (diff) | |
download | bcm5719-llvm-00f0cddfd47ec852db8a5b609ce44e513577e979.tar.gz bcm5719-llvm-00f0cddfd47ec852db8a5b609ce44e513577e979.zip |
We need to pass the TargetMachine object to the InstPrinter if we are printing
the alias of an InstAlias instead of the thing being aliased. Because we need to
know the features that are valid for an InstAlias.
This is part of a work-in-progress.
llvm-svn: 127986
Diffstat (limited to 'llvm/lib/Target/X86/InstPrinter/X86IntelInstPrinter.h')
-rw-r--r-- | llvm/lib/Target/X86/InstPrinter/X86IntelInstPrinter.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/InstPrinter/X86IntelInstPrinter.h b/llvm/lib/Target/X86/InstPrinter/X86IntelInstPrinter.h index 6f120322742..b1dc3f46941 100644 --- a/llvm/lib/Target/X86/InstPrinter/X86IntelInstPrinter.h +++ b/llvm/lib/Target/X86/InstPrinter/X86IntelInstPrinter.h @@ -18,11 +18,13 @@ #include "llvm/Support/raw_ostream.h" namespace llvm { - class MCOperand; + +class MCOperand; +class TargetMachine; class X86IntelInstPrinter : public MCInstPrinter { public: - X86IntelInstPrinter(const MCAsmInfo &MAI) + X86IntelInstPrinter(TargetMachine &TM, const MCAsmInfo &MAI) : MCInstPrinter(MAI) {} virtual void printInst(const MCInst *MI, raw_ostream &OS); |