diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-11-18 21:13:57 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-11-18 21:13:57 +0000 |
commit | bc4679335c3a14aa3080f8367d69dca1880f0640 (patch) | |
tree | 58db7aff0e77f4f49a1e0314cc56d21a50efc86a /clang/lib/Frontend/CompilerInstance.cpp | |
parent | 6d35b5a2107f09291453ecd944951e53ef4ae0f3 (diff) | |
download | bcm5719-llvm-bc4679335c3a14aa3080f8367d69dca1880f0640.tar.gz bcm5719-llvm-bc4679335c3a14aa3080f8367d69dca1880f0640.zip |
Remove the hack where, to get the return status, we had special case for VerifyDiagnosticsClient
and just check the number of errors from the DiagnosticClient.
llvm-svn: 119736
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInstance.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index 152dd6d5b6b..67552747d44 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -573,15 +573,7 @@ bool CompilerInstance::ExecuteAction(FrontendAction &Act) { OS << "\n"; } - // Return the appropriate status when verifying diagnostics. - // - // FIXME: If we could make getNumErrors() do the right thing, we wouldn't need - // this. - if (getDiagnosticOpts().VerifyDiagnostics) - return !static_cast<VerifyDiagnosticsClient&>( - getDiagnosticClient()).HadErrors(); - - return !getDiagnostics().getNumErrors(); + return !getDiagnostics().getClient()->getNumErrors(); } |