r201157 - Rename some PCH-related errors to have 'err_' as their prefix
Dmitri Gribenko
gribozavr at gmail.com
Tue Feb 11 07:40:09 PST 2014
Author: gribozavr
Date: Tue Feb 11 09:40:09 2014
New Revision: 201157
URL: http://llvm.org/viewvc/llvm-project?rev=201157&view=rev
Log:
Rename some PCH-related errors to have 'err_' as their prefix
Modified:
cfe/trunk/include/clang/Basic/DiagnosticSerializationKinds.td
cfe/trunk/lib/Serialization/ASTReader.cpp
Modified: cfe/trunk/include/clang/Basic/DiagnosticSerializationKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSerializationKinds.td?rev=201157&r1=201156&r2=201157&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSerializationKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSerializationKinds.td Tue Feb 11 09:40:09 2014
@@ -39,11 +39,11 @@ def err_pch_langopt_mismatch : Error<"%0
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">;
Modified: cfe/trunk/lib/Serialization/ASTReader.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTReader.cpp?rev=201157&r1=201156&r2=201157&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTReader.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTReader.cpp Tue Feb 11 09:40:09 2014
@@ -1877,8 +1877,8 @@ ASTReader::ReadControlBlock(ModuleFile &
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 &
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 FileNam
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;
}
More information about the cfe-commits
mailing list