Emit objective-c's meta-data at the end of rewriting to stdout.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43830 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/RewriteTest.cpp b/Driver/RewriteTest.cpp
index 52a93df..0c3d06b 100644
--- a/Driver/RewriteTest.cpp
+++ b/Driver/RewriteTest.cpp
@@ -193,8 +193,6 @@
   // Rewrite Objective-c meta data*
   std::string ResultStr;
   WriteObjcMetaData(ResultStr);
-  // For now just print the string out.
-  printf("%s", ResultStr.c_str());
   
   // Get the buffer corresponding to MainFileID.  If we haven't changed it, then
   // we are done.
@@ -206,7 +204,8 @@
   } else {
     printf("No changes\n");
   }
-
+  // Emit metadata.
+  printf("%s", ResultStr.c_str());
 }
 
 //===----------------------------------------------------------------------===//