diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-07-22 17:01:13 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-07-22 17:01:13 +0000 |
commit | 5c415f3e32d6a1b4fc3577834480f1c65c687663 (patch) | |
tree | 88a58142b32aaec0471abe0dc74d99ea3ff46603 /clang/lib/Frontend/PCHReaderDecl.cpp | |
parent | fac440cfb69d4e14671561956e96db0b538e2709 (diff) | |
download | bcm5719-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.cpp | 7 |
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()); |