diff options
author | Sean Callanan <scallanan@apple.com> | 2011-01-27 01:07:04 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2011-01-27 01:07:04 +0000 |
commit | 3989fb921195628cc9822a51cd525bcefeaf1723 (patch) | |
tree | ee573fa9f7df657db3e418490a9f5cfaf3c7e686 /lldb/source/Expression/ClangExpressionParser.cpp | |
parent | 645bf5420d9afc9dbcc9a59f45c48b3b15ca8a14 (diff) | |
download | bcm5719-llvm-3989fb921195628cc9822a51cd525bcefeaf1723.tar.gz bcm5719-llvm-3989fb921195628cc9822a51cd525bcefeaf1723.zip |
Added error reporting to IRForTarget so that the
user doesn't have to enable logging to see where
something went wrong.
llvm-svn: 124342
Diffstat (limited to 'lldb/source/Expression/ClangExpressionParser.cpp')
-rw-r--r-- | lldb/source/Expression/ClangExpressionParser.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/source/Expression/ClangExpressionParser.cpp b/lldb/source/Expression/ClangExpressionParser.cpp index 536160b1f6a..29d3c3e8441 100644 --- a/lldb/source/Expression/ClangExpressionParser.cpp +++ b/lldb/source/Expression/ClangExpressionParser.cpp @@ -11,6 +11,7 @@ #include "lldb/Core/ArchSpec.h" #include "lldb/Core/DataBufferHeap.h" +#include "lldb/Core/Debugger.h" #include "lldb/Core/Disassembler.h" #include "lldb/Core/Stream.h" #include "lldb/Core/StreamString.h" @@ -467,9 +468,15 @@ ClangExpressionParser::MakeJIT (lldb::addr_t &func_allocation_addr, if (decl_map) { + Stream *error_stream = NULL; + + if (exe_ctx.target) + error_stream = &exe_ctx.target->GetDebugger().GetErrorStream(); + IRForTarget ir_for_target(decl_map, m_expr.NeedsVariableResolution(), const_result, + error_stream, function_name.c_str()); if (!ir_for_target.runOnModule(*module)) |