[cfe-commits] r57093 - /cfe/trunk/Driver/clang.cpp

Daniel Dunbar daniel at zuster.org
Sat Oct 4 18:38:40 PDT 2008


Author: ddunbar
Date: Sat Oct  4 20:38:39 2008
New Revision: 57093

URL: http://llvm.org/viewvc/llvm-project?rev=57093&view=rev
Log:
Allow -verify to be used with -rewrite-macros.

Modified:
    cfe/trunk/Driver/clang.cpp

Modified: cfe/trunk/Driver/clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/clang.cpp?rev=57093&r1=57092&r2=57093&view=diff

==============================================================================
--- cfe/trunk/Driver/clang.cpp (original)
+++ cfe/trunk/Driver/clang.cpp Sat Oct  4 20:38:39 2008
@@ -1020,9 +1020,6 @@
   // Parsing the specified input file.
   P.ParseTranslationUnit();
   delete PA;
-
-  if (VerifyDiagnostics)
-    exit(CheckDiagnostics(PP));
 }
 
 //===----------------------------------------------------------------------===//
@@ -1157,6 +1154,9 @@
       exit(CheckASTConsumer(PP, Consumer.get()));
     
     ParseAST(PP, Consumer.get(), Stats);
+  } else {
+    if (VerifyDiagnostics)
+      exit(CheckDiagnostics(PP));
   }
 
   if (Stats) {





More information about the cfe-commits mailing list