diff options
author | Pavel Labath <labath@google.com> | 2016-04-28 08:16:19 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2016-04-28 08:16:19 +0000 |
commit | 35e9ea38127b99a261f946a415d3641538b8baa3 (patch) | |
tree | d0283839aa6960b1402f557f34674397d33d09f5 /lldb/source/Expression/ExpressionSourceCode.cpp | |
parent | 8d598299472f36a2770d13f3c6e4764742b41aea (diff) | |
download | bcm5719-llvm-35e9ea38127b99a261f946a415d3641538b8baa3.tar.gz bcm5719-llvm-35e9ea38127b99a261f946a415d3641538b8baa3.zip |
Revert "Fixed a bug where const this would cause parser errors about $__lldb_expr."
This reverts commit r267833 as it breaks the build. It looks like some work in progress got
committed together with the actual fix, but I'm not sure which one is which, so I'll revert the
whole patch and let author resumbit it after fixing the build error.
llvm-svn: 267861
Diffstat (limited to 'lldb/source/Expression/ExpressionSourceCode.cpp')
-rw-r--r-- | lldb/source/Expression/ExpressionSourceCode.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Expression/ExpressionSourceCode.cpp b/lldb/source/Expression/ExpressionSourceCode.cpp index d82ed608407..14e98105b8a 100644 --- a/lldb/source/Expression/ExpressionSourceCode.cpp +++ b/lldb/source/Expression/ExpressionSourceCode.cpp @@ -195,7 +195,7 @@ AddLocalVariableDecls(const lldb::VariableListSP &var_list_sp, StreamString &str } } -bool ExpressionSourceCode::GetText (std::string &text, lldb::LanguageType wrapping_language, bool static_method, ExecutionContext &exe_ctx) const +bool ExpressionSourceCode::GetText (std::string &text, lldb::LanguageType wrapping_language, bool const_object, bool static_method, ExecutionContext &exe_ctx) const { const char *target_specific_defines = "typedef signed char BOOL;\n"; std::string module_macros; @@ -337,12 +337,13 @@ bool ExpressionSourceCode::GetText (std::string &text, lldb::LanguageType wrappi break; case lldb::eLanguageTypeC_plus_plus: wrap_stream.Printf("void \n" - "$__lldb_class::%s(void *$__lldb_arg) \n" + "$__lldb_class::%s(void *$__lldb_arg) %s\n" "{ \n" " %s; \n" "%s" "} \n", m_name.c_str(), + (const_object ? "const" : ""), lldb_local_var_decls.GetData(), tagged_body.c_str()); break; |