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 8e527d0960..afb20d3df1 100644
--- a/include/llvm/Module.h
+++ b/include/llvm/Module.h
@@ -174,4 +174,9 @@ inline std::ostream &operator<<(std::ostream &O, const Module *M) {
return O;
}
+inline std::ostream &operator<<(std::ostream &O, const Module &M) {
+ M.print(O);
+ return O;
+}
+
#endif