mirror of
https://github.com/intel/llvm.git
synced 2026-02-08 17:28:30 +08:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user