aboutsummaryrefslogtreecommitdiff
path: root/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
commit0fa7d0b15ea2a224bfe43ac745d411f915da87dd (patch)
tree0349170c561edec5800ab425f75d9d8b37e29ba8 /lib/Frontend/PCHReaderDecl.cpp
parent554e6aa2da082575514607c3639c246c04b3232a (diff)
Allow loading declcontext information from any file in the chain. Properly write source locations to dependent files. WIP
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109119 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/PCHReaderDecl.cpp')
-rw-r--r--lib/Frontend/PCHReaderDecl.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Frontend/PCHReaderDecl.cpp b/lib/Frontend/PCHReaderDecl.cpp
index d562d6f621..7297fefcb2 100644
--- a/lib/Frontend/PCHReaderDecl.cpp
+++ b/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());