aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Module.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-28 04:56:28 +0000
committerChris Lattner <sabre@nondot.org>2002-04-28 04:56:28 +0000
commitdae4a368492c4f78c23cd3fa8b31546faf683b38 (patch)
treeca139be22bd91d68a79c2e07231f19eff181b8f5 /include/llvm/Module.h
parent2312b1c59496070cdbd8ff3d7b21d6cd850f7c98 (diff)
downloadexternal_llvm-dae4a368492c4f78c23cd3fa8b31546faf683b38.zip
external_llvm-dae4a368492c4f78c23cd3fa8b31546faf683b38.tar.gz
external_llvm-dae4a368492c4f78c23cd3fa8b31546faf683b38.tar.bz2
Include an operator<<, to print modules
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2358 91177308-0d34-0410-b5e6-96231b3b80d8
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 a87b483..3f142cb 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