summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2010-09-22 00:33:31 +0000
committerSean Callanan <scallanan@apple.com>2010-09-22 00:33:31 +0000
commitc31ba26e0c77fafbcd192a94d6d82d61d9c7286c (patch)
treeabde7e9f7503d6c0bf8f2984d94ad711abf32a78 /lldb/source/Expression
parent9bb7dade7b1ec2c26e56b9226fb32c45d9c191b9 (diff)
downloadbcm5719-llvm-c31ba26e0c77fafbcd192a94d6d82d61d9c7286c.tar.gz
bcm5719-llvm-c31ba26e0c77fafbcd192a94d6d82d61d9c7286c.zip
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
Diffstat (limited to 'lldb/source/Expression')
-rw-r--r--lldb/source/Expression/ASTResultSynthesizer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Expression/ASTResultSynthesizer.cpp b/lldb/source/Expression/ASTResultSynthesizer.cpp
index 8838fddf8ff..f03430bc491 100644
--- a/lldb/source/Expression/ASTResultSynthesizer.cpp
+++ b/lldb/source/Expression/ASTResultSynthesizer.cpp
@@ -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();
OpenPOWER on IntegriCloud