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.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@114514 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Expression/ASTResultSynthesizer.cpp b/source/Expression/ASTResultSynthesizer.cpp
index 8838fdd..f03430b 100644
--- a/source/Expression/ASTResultSynthesizer.cpp
+++ b/source/Expression/ASTResultSynthesizer.cpp
@@ -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();