From e8f0ba75a39b2fa2d34d14e8401ae96f43e1fc14 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Fri, 19 Nov 2010 00:19:18 +0000 Subject: [PATCH] getNumErrors() -> hasErrorOccurred() git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119765 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/FrontendTool/ExecuteCompilerInvocation.cpp | 2 +- tools/driver/cc1as_main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/FrontendTool/ExecuteCompilerInvocation.cpp b/lib/FrontendTool/ExecuteCompilerInvocation.cpp index 63c6287807..861117fb30 100644 --- a/lib/FrontendTool/ExecuteCompilerInvocation.cpp +++ b/lib/FrontendTool/ExecuteCompilerInvocation.cpp @@ -141,7 +141,7 @@ bool clang::ExecuteCompilerInvocation(CompilerInstance *Clang) { // 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 Act(CreateFrontendAction(*Clang)); if (Act) { diff --git a/tools/driver/cc1as_main.cpp b/tools/driver/cc1as_main.cpp index 6159f4b192..fb68d07ab2 100644 --- a/tools/driver/cc1as_main.cpp +++ b/tools/driver/cc1as_main.cpp @@ -368,7 +368,7 @@ int cc1as_main(const char **ArgBegin, const char **ArgEnd, // 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 -- 2.40.0