summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PCHReaderDecl.cpp
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2010-07-22 17:01:13 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2010-07-22 17:01:13 +0000
commit5c415f3e32d6a1b4fc3577834480f1c65c687663 (patch)
tree88a58142b32aaec0471abe0dc74d99ea3ff46603 /clang/lib/Frontend/PCHReaderDecl.cpp
parentfac440cfb69d4e14671561956e96db0b538e2709 (diff)
downloadbcm5719-llvm-5c415f3e32d6a1b4fc3577834480f1c65c687663.tar.gz
bcm5719-llvm-5c415f3e32d6a1b4fc3577834480f1c65c687663.zip
Allow loading declcontext information from any file in the chain. Properly write source locations to dependent files. WIP
llvm-svn: 109119
Diffstat (limited to 'clang/lib/Frontend/PCHReaderDecl.cpp')
-rw-r--r--clang/lib/Frontend/PCHReaderDecl.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/lib/Frontend/PCHReaderDecl.cpp b/clang/lib/Frontend/PCHReaderDecl.cpp
index d562d6f6212..7297fefcb26 100644
--- a/clang/lib/Frontend/PCHReaderDecl.cpp
+++ b/clang/lib/Frontend/PCHReaderDecl.cpp
@@ -1497,7 +1497,12 @@ Decl *PCHReader::ReadDeclRecord(unsigned Index) {
if (Offsets.first || Offsets.second) {
DC->setHasExternalLexicalStorage(Offsets.first != 0);
DC->setHasExternalVisibleStorage(Offsets.second != 0);
- DeclContextOffsets[DC] = Offsets;
+ PCHReader::DeclContextInfo Info = {
+ Loc.first,
+ Offsets.first,
+ Offsets.second
+ };
+ DeclContextOffsets[DC].push_back(Info);
}
}
assert(Idx == Record.size());
OpenPOWER on IntegriCloud