diff options
author | Chris Lattner <sabre@nondot.org> | 2002-04-28 04:56:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-04-28 04:56:28 +0000 |
commit | dae4a368492c4f78c23cd3fa8b31546faf683b38 (patch) | |
tree | ca139be22bd91d68a79c2e07231f19eff181b8f5 | |
parent | 2312b1c59496070cdbd8ff3d7b21d6cd850f7c98 (diff) | |
download | external_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
-rw-r--r-- | include/llvm/Module.h | 5 |
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 |