summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PCHWriterDecl.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-07-21 14:46:17 +0000
committerDouglas Gregor <dgregor@apple.com>2009-07-21 14:46:17 +0000
commit82fe3e3398e9eb16ade4970bfb1dc15023c5e8be (patch)
tree226c314b221179c6cbc2b279bcf493f043fc5f15 /clang/lib/Frontend/PCHWriterDecl.cpp
parent1f982105a673902adacbfb8921aa60d46d07779a (diff)
downloadbcm5719-llvm-82fe3e3398e9eb16ade4970bfb1dc15023c5e8be.tar.gz
bcm5719-llvm-82fe3e3398e9eb16ade4970bfb1dc15023c5e8be.zip
Add the location of the tag keyword into TagDecl. From Enea
Zaffanella, with tweaks from Abramo Bagnara. llvm-svn: 76576
Diffstat (limited to 'clang/lib/Frontend/PCHWriterDecl.cpp')
-rw-r--r--clang/lib/Frontend/PCHWriterDecl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/PCHWriterDecl.cpp b/clang/lib/Frontend/PCHWriterDecl.cpp
index b2c6fd26181..fba11f8e95f 100644
--- a/clang/lib/Frontend/PCHWriterDecl.cpp
+++ b/clang/lib/Frontend/PCHWriterDecl.cpp
@@ -113,6 +113,7 @@ void PCHDeclWriter::VisitTagDecl(TagDecl *D) {
Record.push_back(D->isDefinition());
Writer.AddDeclRef(D->getTypedefForAnonDecl(), Record);
Writer.AddSourceLocation(D->getRBraceLoc(), Record);
+ Writer.AddSourceLocation(D->getTagKeywordLoc(), Record);
}
void PCHDeclWriter::VisitEnumDecl(EnumDecl *D) {
OpenPOWER on IntegriCloud