diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-10-07 20:38:37 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-10-07 20:38:37 +0000 |
commit | 069594a94f485729e82aec29d2e8d16eb47744fa (patch) | |
tree | 97ea3f1759bf12c574dd41f711d4b78c59e99e61 /include/llvm/MC/MCInst.h | |
parent | e4f1a9b8a272ff7452759019ee7774e9dbdf1568 (diff) | |
download | llvm-069594a94f485729e82aec29d2e8d16eb47744fa.tar.gz llvm-069594a94f485729e82aec29d2e8d16eb47744fa.tar.bz2 llvm-069594a94f485729e82aec29d2e8d16eb47744fa.tar.xz |
Add output stream operator for MCInst.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115974 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCInst.h')
-rw-r--r-- | include/llvm/MC/MCInst.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/MC/MCInst.h b/include/llvm/MC/MCInst.h index 76515488ec..dd19f9b18d 100644 --- a/include/llvm/MC/MCInst.h +++ b/include/llvm/MC/MCInst.h @@ -155,6 +155,10 @@ public: StringRef Separator = " ") const; }; +inline raw_ostream& operator<<(raw_ostream &OS, const MCInst &MI) { + MI.print(OS, 0); + return OS; +} } // end namespace llvm |