diff options
author | Jim Grosbach <grosbach@apple.com> | 2012-03-05 19:33:20 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2012-03-05 19:33:20 +0000 |
commit | c6449b636f4984be88f128d0375c056ad05e7e8f (patch) | |
tree | f068034f4b7a57d03478e309ee26ad324741d252 /include/llvm/MC | |
parent | c27faccb3cf67e469f4217e98c20ef9ff2b95241 (diff) | |
download | external_llvm-c6449b636f4984be88f128d0375c056ad05e7e8f.zip external_llvm-c6449b636f4984be88f128d0375c056ad05e7e8f.tar.gz external_llvm-c6449b636f4984be88f128d0375c056ad05e7e8f.tar.bz2 |
Make MCRegisterInfo available to the the MCInstPrinter.
Used to allow context sensitive printing of super-register or sub-register
references.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152043 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC')
-rw-r--r-- | include/llvm/MC/MCInstPrinter.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/MC/MCInstPrinter.h b/include/llvm/MC/MCInstPrinter.h index 01ad2d3..4d2adfa 100644 --- a/include/llvm/MC/MCInstPrinter.h +++ b/include/llvm/MC/MCInstPrinter.h @@ -14,6 +14,7 @@ namespace llvm { class MCInst; class raw_ostream; class MCAsmInfo; +class MCRegisterInfo; class StringRef; /// MCInstPrinter - This is an instance of a target assembly language printer @@ -25,6 +26,7 @@ protected: /// assembly emission is disable. raw_ostream *CommentStream; const MCAsmInfo &MAI; + const MCRegisterInfo &MRI; /// The current set of available features. unsigned AvailableFeatures; @@ -32,8 +34,8 @@ protected: /// Utility function for printing annotations. void printAnnotation(raw_ostream &OS, StringRef Annot); public: - MCInstPrinter(const MCAsmInfo &mai) - : CommentStream(0), MAI(mai), AvailableFeatures(0) {} + MCInstPrinter(const MCAsmInfo &mai, const MCRegisterInfo &mri) + : CommentStream(0), MAI(mai), MRI(mri), AvailableFeatures(0) {} virtual ~MCInstPrinter(); |