[Lldb-commits] [lldb] r114514 - /lldb/trunk/source/Expression/ASTResultSynthesizer.cpp
Sean Callanan
scallanan at apple.com
Tue Sep 21 17:33:31 PDT 2010
Author: spyffe
Date: Tue Sep 21 19:33:31 2010
New Revision: 114514
URL: http://llvm.org/viewvc/llvm-project?rev=114514&view=rev
Log:
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.
Modified:
lldb/trunk/source/Expression/ASTResultSynthesizer.cpp
Modified: lldb/trunk/source/Expression/ASTResultSynthesizer.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ASTResultSynthesizer.cpp?rev=114514&r1=114513&r2=114514&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ASTResultSynthesizer.cpp (original)
+++ lldb/trunk/source/Expression/ASTResultSynthesizer.cpp Tue Sep 21 19:33:31 2010
@@ -118,11 +118,11 @@
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();
More information about the lldb-commits
mailing list