diff options
author | Anand Shukla <ashukla@cs.uiuc.edu> | 2002-07-03 16:52:15 +0000 |
---|---|---|
committer | Anand Shukla <ashukla@cs.uiuc.edu> | 2002-07-03 16:52:15 +0000 |
commit | 4b244ac1b4599c97183f184362adf5a67729912e (patch) | |
tree | 0d56f37c32ae55a09e74c2153fd98f75f0e18580 | |
parent | 3e009942ed6d5b075377ea8eb34c2daa8d8c5f77 (diff) | |
download | external_llvm-4b244ac1b4599c97183f184362adf5a67729912e.zip external_llvm-4b244ac1b4599c97183f184362adf5a67729912e.tar.gz external_llvm-4b244ac1b4599c97183f184362adf5a67729912e.tar.bz2 |
Add new << to allow printing modules by reference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2814 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 8e527d0..afb20d3 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 |