Add new << to allow printing modules by reference.
llvm-svn: 2814
This commit is contained in:
parent
33422fedc2
commit
bc7054b466
|
|
@ -174,4 +174,9 @@ inline std::ostream &operator<<(std::ostream &O, const Module *M) {
|
||||||
return O;
|
return O;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline std::ostream &operator<<(std::ostream &O, const Module &M) {
|
||||||
|
M.print(O);
|
||||||
|
return O;
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue