summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectExpression.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2010-08-13 00:28:39 +0000
committerSean Callanan <scallanan@apple.com>2010-08-13 00:28:39 +0000
commitb269b6eabb081658f3eebdd09672cf2cc1e8c661 (patch)
tree62d544b31d248dfe09c3ff29e85742b15869b597 /lldb/source/Commands/CommandObjectExpression.cpp
parente7c1fe6ab7c1d9d26abde49dcf52b8ccc53e914c (diff)
downloadbcm5719-llvm-b269b6eabb081658f3eebdd09672cf2cc1e8c661.tar.gz
bcm5719-llvm-b269b6eabb081658f3eebdd09672cf2cc1e8c661.zip
Documented ClangExpression and made parts of it
more sane (i.e., removed dead arguments, made sensible defaults, etc.) llvm-svn: 110990
Diffstat (limited to 'lldb/source/Commands/CommandObjectExpression.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectExpression.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Commands/CommandObjectExpression.cpp b/lldb/source/Commands/CommandObjectExpression.cpp
index a9cf2194fd9..6d2ffd978ce 100644
--- a/lldb/source/Commands/CommandObjectExpression.cpp
+++ b/lldb/source/Commands/CommandObjectExpression.cpp
@@ -267,7 +267,7 @@ CommandObjectExpression::EvaluateExpression (const char *expr, bool bare, Stream
{
if (log)
log->Printf("Code cannot be interpreted and must be run in the target.");
- success = clang_expr.PrepareIRForTarget (expr_local_vars);
+ success = clang_expr.PrepareIRForTarget ();
}
if (!success)
@@ -283,7 +283,7 @@ CommandObjectExpression::EvaluateExpression (const char *expr, bool bare, Stream
}
else
{
- if (!clang_expr.JITFunction (m_exe_ctx, "___clang_expr"))
+ if (!clang_expr.JITFunction ())
{
error_stream.PutCString ("error: IR could not be JIT compiled\n");
return false;
@@ -295,7 +295,7 @@ CommandObjectExpression::EvaluateExpression (const char *expr, bool bare, Stream
return false;
}
- lldb::addr_t function_address(clang_expr.GetFunctionAddress ("___clang_expr"));
+ lldb::addr_t function_address(clang_expr.GetFunctionAddress ());
if (function_address == LLDB_INVALID_ADDRESS)
{
@@ -318,7 +318,7 @@ CommandObjectExpression::EvaluateExpression (const char *expr, bool bare, Stream
StreamString insns;
- Error err = clang_expr.DisassembleFunction(insns, m_exe_ctx, "___clang_expr");
+ Error err = clang_expr.DisassembleFunction(insns, m_exe_ctx);
if (!err.Success())
{
OpenPOWER on IntegriCloud