summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ClangExpressionParser.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2015-05-01 00:47:29 +0000
committerSean Callanan <scallanan@apple.com>2015-05-01 00:47:29 +0000
commit80c9759ef74037c485d3e9f4b27a38b3633a2139 (patch)
treec4d4ec5a3d116a22ec0ac532e22f1b4bb45294b2 /lldb/source/Expression/ClangExpressionParser.cpp
parent65b5b01d56f55bd9e9ea3ed03861c653f342c3fd (diff)
downloadbcm5719-llvm-80c9759ef74037c485d3e9f4b27a38b3633a2139.tar.gz
bcm5719-llvm-80c9759ef74037c485d3e9f4b27a38b3633a2139.zip
Added support for locating and importing functions
(including inline functions) from modules in the expression parser. We now have to retain a reference to the code generator in ClangExpressionDeclMap so that any imported function bodies can be appropriately sent to that code generator. <rdar://problem/19883002> llvm-svn: 236297
Diffstat (limited to 'lldb/source/Expression/ClangExpressionParser.cpp')
-rw-r--r--lldb/source/Expression/ClangExpressionParser.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Expression/ClangExpressionParser.cpp b/lldb/source/Expression/ClangExpressionParser.cpp
index 57e620bf2d9..9cc7b0fa684 100644
--- a/lldb/source/Expression/ClangExpressionParser.cpp
+++ b/lldb/source/Expression/ClangExpressionParser.cpp
@@ -409,6 +409,9 @@ ClangExpressionParser::Parse (Stream &stream)
ASTConsumer *ast_transformer = m_expr.ASTTransformer(m_code_generator.get());
+ if (ClangExpressionDeclMap *decl_map = m_expr.DeclMap())
+ decl_map->InstallCodeGenerator(m_code_generator.get());
+
if (ast_transformer)
ParseAST(m_compiler->getPreprocessor(), ast_transformer, m_compiler->getASTContext());
else
OpenPOWER on IntegriCloud