diff options
| author | Greg Clayton <gclayton@apple.com> | 2010-10-15 22:48:33 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2010-10-15 22:48:33 +0000 |
| commit | 7b462cc18a9624805d16a240fb870ca7f917d727 (patch) | |
| tree | 61df6c5862241d671d1d118ee87b0bf7e1a278c4 /lldb/source/Expression/ClangExpressionParser.cpp | |
| parent | e2f8841d340bb755de8e3dbc96eb1d4ec84cae98 (diff) | |
| download | bcm5719-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/ClangExpressionParser.cpp')
| -rw-r--r-- | lldb/source/Expression/ClangExpressionParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Expression/ClangExpressionParser.cpp b/lldb/source/Expression/ClangExpressionParser.cpp index 506f2f5ffd9..94c1c013421 100644 --- a/lldb/source/Expression/ClangExpressionParser.cpp +++ b/lldb/source/Expression/ClangExpressionParser.cpp @@ -272,7 +272,7 @@ ClangExpressionParser::ClangExpressionParser(const char *target_triple, m_compiler->setASTContext(ast_context.release()); - std::string module_name("___clang_module"); + std::string module_name("$__lldb_module"); m_code_generator.reset(CreateLLVMCodeGen(m_compiler->getDiagnostics(), module_name, |

