]> granicus.if.org Git - clang/commitdiff
Emit objective-c's meta-data at the end of rewriting to stdout.
authorFariborz Jahanian <fjahanian@apple.com>
Wed, 7 Nov 2007 18:40:28 +0000 (18:40 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Wed, 7 Nov 2007 18:40:28 +0000 (18:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43830 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/RewriteTest.cpp

index 52a93df30143b2338c2000a025f3e80c4a121ff9..0c3d06b86b1004493297a873b9a242b89dcdb040 100644 (file)
@@ -193,8 +193,6 @@ RewriteTest::~RewriteTest() {
   // 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 @@ RewriteTest::~RewriteTest() {
   } else {
     printf("No changes\n");
   }
-
+  // Emit metadata.
+  printf("%s", ResultStr.c_str());
 }
 
 //===----------------------------------------------------------------------===//