summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ClangExpressionParser.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2011-10-28 23:38:38 +0000
committerSean Callanan <scallanan@apple.com>2011-10-28 23:38:38 +0000
commiteddeb3b96fbba466d8a630757fad063b54ee1f76 (patch)
tree386770e8ddf9cf7f50aaccf97e1a39d8ae6dac01 /lldb/source/Expression/ClangExpressionParser.cpp
parent8763780961ae37b46690e0ee66447847275a0040 (diff)
downloadbcm5719-llvm-eddeb3b96fbba466d8a630757fad063b54ee1f76.tar.gz
bcm5719-llvm-eddeb3b96fbba466d8a630757fad063b54ee1f76.zip
As part of a general refactoring of ClangASTSource to
allow it to complete types on behalf of any AST context (including the "scratch" AST context associated with the target), I scrapped its role as intermediary between the Clang parser and ClangExpressionDeclMap, and instead made ClangExpressionDeclMap inherit from ClangASTSource. After this, I will migrate the functions that complete types and perform namespace lookups from ClangExpressionDeclMap to ClangASTSource. Ultimately ClangExpressionDeclMap's only responsiblity will be to look up variables and ensure that they are materialized and dematerialized correctly. llvm-svn: 143253
Diffstat (limited to 'lldb/source/Expression/ClangExpressionParser.cpp')
-rw-r--r--lldb/source/Expression/ClangExpressionParser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Expression/ClangExpressionParser.cpp b/lldb/source/Expression/ClangExpressionParser.cpp
index e49142687d4..50518e78e73 100644
--- a/lldb/source/Expression/ClangExpressionParser.cpp
+++ b/lldb/source/Expression/ClangExpressionParser.cpp
@@ -320,7 +320,8 @@ ClangExpressionParser::ClangExpressionParser (ExecutionContextScope *exe_scope,
if (decl_map)
{
- OwningPtr<clang::ExternalASTSource> ast_source(new ClangASTSource(*ast_context, *decl_map));
+ llvm::OwningPtr<clang::ExternalASTSource> ast_source(decl_map->CreateProxy());
+ decl_map->InstallASTContext(ast_context.get());
ast_context->setExternalSource(ast_source);
}
OpenPOWER on IntegriCloud