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:
54f32e6
)
Allow << streaming of MCOperand.
author
Jim Grosbach
<grosbach@apple.com>
Fri, 8 Oct 2010 21:36:13 +0000
(21:36 +0000)
committer
Jim Grosbach
<grosbach@apple.com>
Fri, 8 Oct 2010 21:36:13 +0000
(21:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116107
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 dd19f9b18df9af0ff90838f7b84c086662eb040a..2b337e36245cf7839ff8fc1fe938e9aa64038818 100644
(file)
--- a/
include/llvm/MC/MCInst.h
+++ b/
include/llvm/MC/MCInst.h
@@
-155,6
+155,11
@@
public:
StringRef Separator = " ") const;
};
+inline raw_ostream& operator<<(raw_ostream &OS, const MCOperand &MO) {
+ MO.print(OS, 0);
+ return OS;
+}
+
inline raw_ostream& operator<<(raw_ostream &OS, const MCInst &MI) {
MI.print(OS, 0);
return OS;