diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-10-31 07:20:15 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-10-31 07:20:15 +0000 |
commit | 6fb6003aad61169a5bd7eb4b85fa7e93a986333d (patch) | |
tree | fef44a2dd4d7d38e01288adfaadfae95e48c8721 /clang/lib/Serialization/ASTWriter.cpp | |
parent | 6c798bebc1f481ceeafa1d0fe67ce715051ce4be (diff) | |
download | bcm5719-llvm-6fb6003aad61169a5bd7eb4b85fa7e93a986333d.tar.gz bcm5719-llvm-6fb6003aad61169a5bd7eb4b85fa7e93a986333d.zip |
[PCH] Now that we store the location of a decl outside its record
make sure that we keep track of locations of replaced decls as well.
llvm-svn: 143341
Diffstat (limited to 'clang/lib/Serialization/ASTWriter.cpp')
-rw-r--r-- | clang/lib/Serialization/ASTWriter.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp index 1b44baa9ce5..9716447dfa9 100644 --- a/clang/lib/Serialization/ASTWriter.cpp +++ b/clang/lib/Serialization/ASTWriter.cpp @@ -3234,10 +3234,11 @@ void ASTWriter::WriteDeclReplacementsBlock() { return; RecordData Record; - for (SmallVector<std::pair<DeclID, uint64_t>, 16>::iterator + for (SmallVector<ReplacedDeclInfo, 16>::iterator I = ReplacedDecls.begin(), E = ReplacedDecls.end(); I != E; ++I) { - Record.push_back(I->first); - Record.push_back(I->second); + Record.push_back(I->ID); + Record.push_back(I->Offset); + Record.push_back(I->Loc); } Stream.EmitRecord(DECL_REPLACEMENTS, Record); } |