forked from OSchip/llvm-project
Rename some PCH-related errors to have 'err_' as their prefix
llvm-svn: 201157
This commit is contained in:
parent
852d622e5e
commit
2228cd3f07
|
@ -39,11 +39,11 @@ def err_pch_langopt_mismatch : Error<"%0 was %select{disabled|enabled}1 in "
|
|||
def err_pch_langopt_value_mismatch : Error<
|
||||
"%0 differs in PCH file vs. current file">;
|
||||
|
||||
def warn_pch_version_too_old : Error<
|
||||
def err_pch_version_too_old : Error<
|
||||
"PCH file uses an older PCH format that is no longer supported">;
|
||||
def warn_pch_version_too_new : Error<
|
||||
def err_pch_version_too_new : Error<
|
||||
"PCH file uses a newer PCH format that cannot be read">;
|
||||
def warn_pch_different_branch : Error<
|
||||
def err_pch_different_branch : Error<
|
||||
"PCH file built from a different branch (%0) than the compiler (%1)">;
|
||||
def err_pch_with_compiler_errors : Error<
|
||||
"PCH file contains compiler errors">;
|
||||
|
|
|
@ -1877,8 +1877,8 @@ ASTReader::ReadControlBlock(ModuleFile &F,
|
|||
case METADATA: {
|
||||
if (Record[0] != VERSION_MAJOR && !DisableValidation) {
|
||||
if ((ClientLoadCapabilities & ARR_VersionMismatch) == 0)
|
||||
Diag(Record[0] < VERSION_MAJOR? diag::warn_pch_version_too_old
|
||||
: diag::warn_pch_version_too_new);
|
||||
Diag(Record[0] < VERSION_MAJOR? diag::err_pch_version_too_old
|
||||
: diag::err_pch_version_too_new);
|
||||
return VersionMismatch;
|
||||
}
|
||||
|
||||
|
@ -1894,7 +1894,7 @@ ASTReader::ReadControlBlock(ModuleFile &F,
|
|||
StringRef ASTBranch = Blob;
|
||||
if (StringRef(CurBranch) != ASTBranch && !DisableValidation) {
|
||||
if ((ClientLoadCapabilities & ARR_VersionMismatch) == 0)
|
||||
Diag(diag::warn_pch_different_branch) << ASTBranch << CurBranch;
|
||||
Diag(diag::err_pch_different_branch) << ASTBranch << CurBranch;
|
||||
return VersionMismatch;
|
||||
}
|
||||
break;
|
||||
|
@ -3200,7 +3200,7 @@ ASTReader::ReadASTCore(StringRef FileName,
|
|||
case AST_BLOCK_ID:
|
||||
if (!HaveReadControlBlock) {
|
||||
if ((ClientLoadCapabilities & ARR_VersionMismatch) == 0)
|
||||
Diag(diag::warn_pch_version_too_old);
|
||||
Diag(diag::err_pch_version_too_old);
|
||||
return VersionMismatch;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue