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
This commit is contained in:
Anand Shukla 2002-07-03 16:52:15 +00:00
parent 3e009942ed
commit 4b244ac1b4

View File

@ -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