Add new << to allow printing modules by reference.

llvm-svn: 2814
This commit is contained in:
Anand Shukla 2002-07-03 16:52:15 +00:00
parent 33422fedc2
commit bc7054b466
1 changed files with 5 additions and 0 deletions

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