From 17437130e99192ec4cac121139f72439ffcee1fc Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 22 Jan 2010 20:59:36 +0000 Subject: [PATCH] Rename pch::SVN_BRANCH_REVISION to pch::VERSION_CONTROL_BRANCH_REVISION. llvm-svn: 94214 --- clang/include/clang/Frontend/PCHBitCodes.h | 8 ++++---- clang/lib/Frontend/PCHReader.cpp | 2 +- clang/lib/Frontend/PCHWriter.cpp | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/clang/include/clang/Frontend/PCHBitCodes.h b/clang/include/clang/Frontend/PCHBitCodes.h index d9d74dcdc47e..1a9f4ceab933 100644 --- a/clang/include/clang/Frontend/PCHBitCodes.h +++ b/clang/include/clang/Frontend/PCHBitCodes.h @@ -30,7 +30,7 @@ namespace clang { /// designed for the previous version could not support reading /// the new version), this number should be increased. /// - /// Version 3 of PCH files also requires that the Subversion branch and + /// Version 3 of PCH files also requires that the version control branch and /// revision match exactly, since there is no backward compatibility of /// PCH files at this time. const unsigned VERSION_MAJOR = 3; @@ -219,9 +219,9 @@ namespace clang { /// comments were encountered in the source code. COMMENT_RANGES = 20, - /// \brief Record code for the Subversion branch and revision information - /// of the compiler used to build this PCH file. - SVN_BRANCH_REVISION = 21 + /// \brief Record code for the version control branch and revision + /// information of the compiler used to build this PCH file. + VERSION_CONTROL_BRANCH_REVISION = 21 }; /// \brief Record types used within a source manager block. diff --git a/clang/lib/Frontend/PCHReader.cpp b/clang/lib/Frontend/PCHReader.cpp index 4114b8b95d2f..cc738e6fb96e 100644 --- a/clang/lib/Frontend/PCHReader.cpp +++ b/clang/lib/Frontend/PCHReader.cpp @@ -1399,7 +1399,7 @@ PCHReader::ReadPCHBlock() { NumComments = BlobLen / sizeof(SourceRange); break; - case pch::SVN_BRANCH_REVISION: { + case pch::VERSION_CONTROL_BRANCH_REVISION: { unsigned CurRevision = getClangSubversionRevision(); if (Record[0] && CurRevision && Record[0] != CurRevision) { Diag(Record[0] < CurRevision? diag::warn_pch_version_too_old diff --git a/clang/lib/Frontend/PCHWriter.cpp b/clang/lib/Frontend/PCHWriter.cpp index caaf880df8ed..d1aa1d8b500b 100644 --- a/clang/lib/Frontend/PCHWriter.cpp +++ b/clang/lib/Frontend/PCHWriter.cpp @@ -543,7 +543,7 @@ void PCHWriter::WriteBlockInfoBlock() { RECORD(STAT_CACHE); RECORD(EXT_VECTOR_DECLS); RECORD(COMMENT_RANGES); - RECORD(SVN_BRANCH_REVISION); + RECORD(VERSION_CONTROL_BRANCH_REVISION); // SourceManager Block. BLOCK(SOURCE_MANAGER_BLOCK); @@ -709,12 +709,12 @@ void PCHWriter::WriteMetadata(ASTContext &Context, const char *isysroot) { // Subversion branch/version information. BitCodeAbbrev *SvnAbbrev = new BitCodeAbbrev(); - SvnAbbrev->Add(BitCodeAbbrevOp(pch::SVN_BRANCH_REVISION)); + SvnAbbrev->Add(BitCodeAbbrevOp(pch::VERSION_CONTROL_BRANCH_REVISION)); SvnAbbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); // SVN revision SvnAbbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Blob)); // SVN branch/tag unsigned SvnAbbrevCode = Stream.EmitAbbrev(SvnAbbrev); Record.clear(); - Record.push_back(pch::SVN_BRANCH_REVISION); + Record.push_back(pch::VERSION_CONTROL_BRANCH_REVISION); Record.push_back(getClangSubversionRevision()); Stream.EmitRecordWithBlob(SvnAbbrevCode, Record, getClangRepositoryPath()); }