From 4b244ac1b4599c97183f184362adf5a67729912e Mon Sep 17 00:00:00 2001 From: Anand Shukla Date: Wed, 3 Jul 2002 16:52:15 +0000 Subject: [PATCH] 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 --- include/llvm/Module.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/llvm/Module.h b/include/llvm/Module.h index 8e527d0960a..afb20d3df17 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