diff options
| author | Sean Callanan <scallanan@apple.com> | 2010-11-19 20:20:02 +0000 |
|---|---|---|
| committer | Sean Callanan <scallanan@apple.com> | 2010-11-19 20:20:02 +0000 |
| commit | 6abfabff6158076eccdf6fcac5a12894039de2c9 (patch) | |
| tree | fb2b0b9fee6a19967b10ab70d94e663de84ddf29 /lldb/source/Expression/ClangExpressionParser.cpp | |
| parent | 003c6e700b9e240a3b534a36d90c1a6c38f8811d (diff) | |
| download | bcm5719-llvm-6abfabff6158076eccdf6fcac5a12894039de2c9.tar.gz bcm5719-llvm-6abfabff6158076eccdf6fcac5a12894039de2c9.zip | |
Modifications to type handling logic. We no longer
perform recursive type lookups, because these are not
required for full type fidelity. We also make the
SelectorTable last for the full lifetime of the Clang
compiler; this was the source of many bugs.
llvm-svn: 119835
Diffstat (limited to 'lldb/source/Expression/ClangExpressionParser.cpp')
| -rw-r--r-- | lldb/source/Expression/ClangExpressionParser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Expression/ClangExpressionParser.cpp b/lldb/source/Expression/ClangExpressionParser.cpp index ad0807a5c73..ffc2c9dc27f 100644 --- a/lldb/source/Expression/ClangExpressionParser.cpp +++ b/lldb/source/Expression/ClangExpressionParser.cpp @@ -254,14 +254,14 @@ ClangExpressionParser::ClangExpressionParser(const char *target_triple, // 6. Most of this we get from the CompilerInstance, but we // also want to give the context an ExternalASTSource. - SelectorTable selector_table; + m_selector_table.reset(new SelectorTable()); m_builtin_context.reset(new Builtin::Context(m_compiler->getTarget())); std::auto_ptr<clang::ASTContext> ast_context(new ASTContext(m_compiler->getLangOpts(), m_compiler->getSourceManager(), m_compiler->getTarget(), m_compiler->getPreprocessor().getIdentifierTable(), - selector_table, + *m_selector_table.get(), *m_builtin_context.get(), 0)); |

