diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-08-18 23:56:21 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-08-18 23:56:21 +0000 |
commit | a4232eb646d89e7d52424bb42eb87d9061f39e63 (patch) | |
tree | e70f12104a106fe51edfcb534f17d98adfd3c10e /lib/Serialization/PCHWriterDecl.cpp | |
parent | f421089b73800066bbf43613c9a8422a96c1b0c3 (diff) |
Rename PCHWriter to ASTWriter
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111463 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/PCHWriterDecl.cpp')
-rw-r--r-- | lib/Serialization/PCHWriterDecl.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Serialization/PCHWriterDecl.cpp b/lib/Serialization/PCHWriterDecl.cpp index a9ec5276e8..ec0c0f95fd 100644 --- a/lib/Serialization/PCHWriterDecl.cpp +++ b/lib/Serialization/PCHWriterDecl.cpp @@ -28,16 +28,16 @@ using namespace clang; namespace clang { class PCHDeclWriter : public DeclVisitor<PCHDeclWriter, void> { - PCHWriter &Writer; + ASTWriter &Writer; ASTContext &Context; - PCHWriter::RecordData &Record; + ASTWriter::RecordData &Record; public: pch::DeclCode Code; unsigned AbbrevToUse; - PCHDeclWriter(PCHWriter &Writer, ASTContext &Context, - PCHWriter::RecordData &Record) + PCHDeclWriter(ASTWriter &Writer, ASTContext &Context, + ASTWriter::RecordData &Record) : Writer(Writer), Context(Context), Record(Record) { } @@ -1038,10 +1038,10 @@ void PCHDeclWriter::VisitRedeclarable(Redeclarable<T> *D) { } //===----------------------------------------------------------------------===// -// PCHWriter Implementation +// ASTWriter Implementation //===----------------------------------------------------------------------===// -void PCHWriter::WriteDeclsBlockAbbrevs() { +void ASTWriter::WriteDeclsBlockAbbrevs() { using namespace llvm; // Abbreviation for DECL_PARM_VAR. BitCodeAbbrev *Abv = new BitCodeAbbrev(); @@ -1108,7 +1108,7 @@ static bool isRequiredDecl(const Decl *D, ASTContext &Context) { return Context.DeclMustBeEmitted(D); } -void PCHWriter::WriteDecl(ASTContext &Context, Decl *D) { +void ASTWriter::WriteDecl(ASTContext &Context, Decl *D) { RecordData Record; PCHDeclWriter W(*this, Context, Record); |