forked from OSchip/llvm-project
Improved the logging for ASTs generated on the
expression parser's behalf so that now we see the full TranslationUnitDecl instead of just the FunctionDecl. llvm-svn: 114514
This commit is contained in:
parent
9bb7dade7b
commit
c31ba26e0c
|
@ -118,11 +118,11 @@ ASTResultSynthesizer::SynthesizeResult (FunctionDecl *FunDecl)
|
|||
std::string s;
|
||||
raw_string_ostream os(s);
|
||||
|
||||
function_decl->print(os);
|
||||
Ctx.getTranslationUnitDecl()->print(os);
|
||||
|
||||
os.flush();
|
||||
|
||||
log->Printf("Function AST before transforming:\n%s", s.c_str());
|
||||
log->Printf("AST context before transforming:\n%s", s.c_str());
|
||||
}
|
||||
|
||||
Stmt *function_body = function_decl->getBody();
|
||||
|
|
Loading…
Reference in New Issue