[cfe-commits] r119765 - in /cfe/trunk: lib/FrontendTool/ExecuteCompilerInvocation.cpp tools/driver/cc1as_main.cpp

Argyrios Kyrtzidis akyrtzi at gmail.com
Thu Nov 18 16:19:18 PST 2010


Author: akirtzidis
Date: Thu Nov 18 18:19:18 2010
New Revision: 119765

URL: http://llvm.org/viewvc/llvm-project?rev=119765&view=rev
Log:
getNumErrors() -> hasErrorOccurred()

Modified:
    cfe/trunk/lib/FrontendTool/ExecuteCompilerInvocation.cpp
    cfe/trunk/tools/driver/cc1as_main.cpp

Modified: cfe/trunk/lib/FrontendTool/ExecuteCompilerInvocation.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/FrontendTool/ExecuteCompilerInvocation.cpp?rev=119765&r1=119764&r2=119765&view=diff
==============================================================================
--- cfe/trunk/lib/FrontendTool/ExecuteCompilerInvocation.cpp (original)
+++ cfe/trunk/lib/FrontendTool/ExecuteCompilerInvocation.cpp Thu Nov 18 18:19:18 2010
@@ -141,7 +141,7 @@
 
   // If there were errors in processing arguments, don't do anything else.
   bool Success = false;
-  if (!Clang->getDiagnostics().getNumErrors()) {
+  if (!Clang->getDiagnostics().hasErrorOccurred()) {
     // Create and execute the frontend action.
     llvm::OwningPtr<FrontendAction> Act(CreateFrontendAction(*Clang));
     if (Act) {

Modified: cfe/trunk/tools/driver/cc1as_main.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/driver/cc1as_main.cpp?rev=119765&r1=119764&r2=119765&view=diff
==============================================================================
--- cfe/trunk/tools/driver/cc1as_main.cpp (original)
+++ cfe/trunk/tools/driver/cc1as_main.cpp Thu Nov 18 18:19:18 2010
@@ -368,7 +368,7 @@
 
   // Execute the invocation, unless there were parsing errors.
   bool Success = false;
-  if (!Diags.getNumErrors())
+  if (!Diags.hasErrorOccurred())
     Success = ExecuteAssembler(Asm, Diags);
 
   // If any timers were active but haven't been destroyed yet, print their





More information about the cfe-commits mailing list