Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Unified Diff: src/IceOperand.h

Issue 577703002: Add unreachable instruction to Subzero. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/PNaClTranslator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceOperand.h
diff --git a/src/IceOperand.h b/src/IceOperand.h
index c46330db4f0cdcebefbc53033a5b9fc3d0f82721..cefdf9fc4ae124021ada466a8383f33e5224db95 100644
--- a/src/IceOperand.h
+++ b/src/IceOperand.h
@@ -84,6 +84,12 @@ private:
Operand &operator=(const Operand &) LLVM_DELETED_FUNCTION;
};
+template<class StreamType>
+inline StreamType &operator<<(StreamType &Str, const Operand &Op) {
+ Op.dump(Str);
+ return Str;
+}
+
// Constant is the abstract base class for constants. All
// constants are allocated from a global arena and are pooled.
class Constant : public Operand {
« no previous file with comments | « no previous file | src/PNaClTranslator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698