зеркало из https://github.com/microsoft/clang-1.git
getNumErrors() -> hasErrorOccurred()
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119765 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
8fc32d272b
Коммит
e8f0ba75a3
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче