diff options
Diffstat (limited to 'lldb/source/Expression/IRDynamicChecks.cpp')
| -rw-r--r-- | lldb/source/Expression/IRDynamicChecks.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lldb/source/Expression/IRDynamicChecks.cpp b/lldb/source/Expression/IRDynamicChecks.cpp index f2ce5b2d84f..0f98123e471 100644 --- a/lldb/source/Expression/IRDynamicChecks.cpp +++ b/lldb/source/Expression/IRDynamicChecks.cpp @@ -343,6 +343,18 @@ IRDynamicChecks::runOnModule(llvm::Module &M) if (!vpc.Instrument()) return false; + if (log) + { + std::string s; + raw_string_ostream oss(s); + + M.print(oss, NULL); + + oss.flush(); + + log->Printf("Module after dynamic checks: \n%s", s.c_str()); + } + return true; } |

