summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-10-07 20:38:37 +0000
committerJim Grosbach <grosbach@apple.com>2010-10-07 20:38:37 +0000
commitba05c68ce39ea2d082197f599d7ad87b56819387 (patch)
tree987515d9313e6520b42ef2e92ad6ac691379247e /llvm/include
parent0df7ea4c24fde60512cc6c33479878c996a205ae (diff)
downloadbcm5719-llvm-ba05c68ce39ea2d082197f599d7ad87b56819387.tar.gz
bcm5719-llvm-ba05c68ce39ea2d082197f599d7ad87b56819387.zip
Add output stream operator for MCInst.
llvm-svn: 115974
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/MC/MCInst.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/llvm/MC/MCInst.h b/llvm/include/llvm/MC/MCInst.h
index 76515488ec4..dd19f9b18df 100644
--- a/llvm/include/llvm/MC/MCInst.h
+++ b/llvm/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
OpenPOWER on IntegriCloud