summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ClangUserExpression.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-10-15 22:48:33 +0000
committerGreg Clayton <gclayton@apple.com>2010-10-15 22:48:33 +0000
commit7b462cc18a9624805d16a240fb870ca7f917d727 (patch)
tree61df6c5862241d671d1d118ee87b0bf7e1a278c4 /lldb/source/Expression/ClangUserExpression.cpp
parente2f8841d340bb755de8e3dbc96eb1d4ec84cae98 (diff)
downloadbcm5719-llvm-7b462cc18a9624805d16a240fb870ca7f917d727.tar.gz
bcm5719-llvm-7b462cc18a9624805d16a240fb870ca7f917d727.zip
Made many ConstString functions inlined in the header file.
Changed all of our synthesized "___clang" functions, types and variables that get used in expressions over to have a prefix of "$_lldb". Now when we do name lookups we can easily switch off of the first '$' character to know if we should look through only our internal (when first char is '$') stuff, or when we should look through program variables, functions and types. Converted all of the clang expression code over to using "const ConstString&" values for names instead of "const char *" since there were many places that were converting the "const char *" names into ConstString names and them throwing them away. We now avoid making a lot of ConstString conversions and benefit from the quick comparisons in a few extra spots. Converted a lot of code from LLVM coding conventions into LLDB coding conventions. llvm-svn: 116634
Diffstat (limited to 'lldb/source/Expression/ClangUserExpression.cpp')
-rw-r--r--lldb/source/Expression/ClangUserExpression.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Expression/ClangUserExpression.cpp b/lldb/source/Expression/ClangUserExpression.cpp
index c1eeb24e273..50fffd0c7ef 100644
--- a/lldb/source/Expression/ClangUserExpression.cpp
+++ b/lldb/source/Expression/ClangUserExpression.cpp
@@ -88,7 +88,7 @@ ClangUserExpression::Parse (Stream &error_stream, ExecutionContext &exe_ctx)
if (m_cplusplus)
{
m_transformed_stream.Printf("void \n"
- "___clang_class::%s(void *___clang_arg) \n"
+ "$__lldb_class::%s(void *$__lldb_arg) \n"
"{ \n"
" %s; \n"
"} \n",
@@ -100,7 +100,7 @@ ClangUserExpression::Parse (Stream &error_stream, ExecutionContext &exe_ctx)
else
{
m_transformed_stream.Printf("void \n"
- "%s(void *___clang_arg) \n"
+ "%s(void *$__lldb_arg) \n"
"{ \n"
" %s; \n"
"} \n",
OpenPOWER on IntegriCloud