From 069594a94f485729e82aec29d2e8d16eb47744fa Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Thu, 7 Oct 2010 20:38:37 +0000 Subject: [PATCH] Add output stream operator for MCInst. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115974 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/MC/MCInst.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/llvm/MC/MCInst.h b/include/llvm/MC/MCInst.h index 76515488ec4..dd19f9b18df 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 -- 2.34.1