diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-11-18 21:47:07 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-11-18 21:47:07 +0000 |
commit | be3aab6abe5e66bb86596da806acc49614eacb69 (patch) | |
tree | 63f323d25a34670b3eab48602c96a4bd1e54f511 /lib/Driver/Driver.cpp | |
parent | 026f6911bb985c800a54446de9f6da8745ae025a (diff) |
Use hasErrorOccurred() instead of getNumErrors() where it makes sense.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119746 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r-- | lib/Driver/Driver.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index 3cb0aa6101..5bb9a651d0 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -326,7 +326,7 @@ int Driver::ExecuteCompilation(const Compilation &C) const { } // If there were errors building the compilation, quit now. - if (getDiags().getNumErrors()) + if (getDiags().hasErrorOccurred()) return 1; const Command *FailingCommand = 0; @@ -998,7 +998,7 @@ void Driver::BuildJobs(Compilation &C) const { // If the user passed -Qunused-arguments or there were errors, don't warn // about any unused arguments. - if (Diags.getNumErrors() || + if (Diags.hasErrorOccurred() || C.getArgs().hasArg(options::OPT_Qunused_arguments)) return; |