diff --git a/include/llvm/Module.h b/include/llvm/Module.h index a87b48380aa..3f142cbe0b3 100644 --- a/include/llvm/Module.h +++ b/include/llvm/Module.h @@ -156,4 +156,9 @@ public: void dropAllReferences(); }; +inline std::ostream &operator<<(std::ostream &O, const Module *M) { + M->print(O); + return O; +} + #endif