aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Module.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Module.h')
-rw-r--r--include/llvm/Module.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Module.h b/include/llvm/Module.h
index a87b48380a..3f142cbe0b 100644
--- a/include/llvm/Module.h
+++ b/include/llvm/Module.h
@@ -156,4 +156,9 @@ public:
void dropAllReferences();
};
+inline std::ostream &operator<<(std::ostream &O, const Module *M) {
+ M->print(O);
+ return O;
+}
+
#endif