move serialization logic from TranslationUnit to ASTContext.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67902 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/clang-cc/ASTConsumers.cpp b/tools/clang-cc/ASTConsumers.cpp
index 9eba137..c3828a9 100644
--- a/tools/clang-cc/ASTConsumers.cpp
+++ b/tools/clang-cc/ASTConsumers.cpp
@@ -659,8 +659,7 @@
   DeclContextPrinter() : Out(llvm::errs()) {}
 
   void HandleTranslationUnit(TranslationUnit& TU) {
-    TranslationUnitDecl* TUD = TU.getContext().getTranslationUnitDecl();
-    PrintDeclContext(TUD, 4);
+    PrintDeclContext(TU.getContext().getTranslationUnitDecl(), 4);
   }
 
   void PrintDeclContext(const DeclContext* DC, unsigned Indentation);