diff options
author | Bill Wendling <isanbard@gmail.com> | 2006-11-28 22:21:29 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2006-11-28 22:21:29 +0000 |
commit | b5ebf15b2b2ce8989caf1a1114b05d80b0f9bd48 (patch) | |
tree | d3bcb286a90fa4c2b441167133b09cf44c1a7f04 /include/llvm/Module.h | |
parent | d4d9ab80b7b23c2f73192319e5582fb6802f5f18 (diff) |
Added a temporary hack to get the llvm-streams to work for future checkins.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31978 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Module.h')
-rw-r--r-- | include/llvm/Module.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Module.h b/include/llvm/Module.h index 195c73d2f4..4cb6d279f0 100644 --- a/include/llvm/Module.h +++ b/include/llvm/Module.h @@ -295,8 +295,14 @@ public: /// @{ public: /// Print the module to an output stream + void print(llvm_ostream &OS) const { + if (OS.stream()) print(*OS.stream(), 0); + } void print(std::ostream &OS) const { print(OS, 0); } /// Print the module to an output stream with AssemblyAnnotationWriter. + void print(llvm_ostream &OS, AssemblyAnnotationWriter *AAW) const { + if (OS.stream()) print(*OS.stream(), AAW); + } void print(std::ostream &OS, AssemblyAnnotationWriter *AAW) const; /// Dump the module to std::cerr (for debugging). void dump() const; |