projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4f1a9b
)
Add output stream operator for MCInst.
author
Jim Grosbach
<grosbach@apple.com>
Thu, 7 Oct 2010 20:38:37 +0000
(20:38 +0000)
committer
Jim Grosbach
<grosbach@apple.com>
Thu, 7 Oct 2010 20:38:37 +0000
(20:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115974
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/MC/MCInst.h
patch
|
blob
|
history
diff --git
a/include/llvm/MC/MCInst.h
b/include/llvm/MC/MCInst.h
index 76515488ec42a2d0671c17ba05f1d4eb5ee0f83c..dd19f9b18df9af0ff90838f7b84c086662eb040a 100644
(file)
--- 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