getNumErrors() -> hasErrorOccurred()

llvm-svn: 119765
This commit is contained in:
Argyrios Kyrtzidis 2010-11-19 00:19:18 +00:00
parent f51ec1d12b
commit 5c26cda273
2 changed files with 2 additions and 2 deletions

View File

@ -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<FrontendAction> Act(CreateFrontendAction(*Clang));
if (Act) {

View File

@ -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