diff options
Diffstat (limited to 'include/llvm/Module.h')
-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 8e527d0960..afb20d3df1 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 |