diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-07-20 21:50:20 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-07-20 21:50:20 +0000 |
commit | 190faf7c30890479925193b074571e5dc30c3f53 (patch) | |
tree | 68e868033220f510b0ddc68e802803a13336de14 /include | |
parent | c11787fc247ec49f7c651be4b2c1be096cf4970a (diff) |
Allow loading source locations from any file in the chain. WIP
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108942 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/clang/Basic/SourceManager.h | 2 | ||||
-rw-r--r-- | include/clang/Frontend/PCHReader.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/clang/Basic/SourceManager.h b/include/clang/Basic/SourceManager.h index 6a4be46094..5d98fb9253 100644 --- a/include/clang/Basic/SourceManager.h +++ b/include/clang/Basic/SourceManager.h @@ -435,7 +435,7 @@ public: /// createFileID - Create a new FileID that represents the specified file /// being #included from the specified IncludePosition. This returns 0 on /// error and translates NULL into standard input. - /// PreallocateID should be non-zero to specify which a pre-allocated, + /// PreallocateID should be non-zero to specify which pre-allocated, /// lazily computed source location is being filled in by this operation. FileID createFileID(const FileEntry *SourceFile, SourceLocation IncludePos, SrcMgr::CharacteristicKind FileCharacter, diff --git a/include/clang/Frontend/PCHReader.h b/include/clang/Frontend/PCHReader.h index 86a1a006bd..c3826e7a17 100644 --- a/include/clang/Frontend/PCHReader.h +++ b/include/clang/Frontend/PCHReader.h @@ -271,6 +271,7 @@ private: /// \brief The chain of PCH files. The first entry is the one named by the /// user, the last one is the one that doesn't depend on anything further. + /// That is, the entry I was created with -include-pch I+1. llvm::SmallVector<PerFileData*, 2> Chain; /// \brief Types that have already been loaded from the PCH file. @@ -539,6 +540,7 @@ private: bool ParseLineTable(llvm::SmallVectorImpl<uint64_t> &Record); PCHReadResult ReadSourceManagerBlock(PerFileData &F); PCHReadResult ReadSLocEntryRecord(unsigned ID); + llvm::BitstreamCursor &SLocCursorForID(unsigned ID); bool ParseLanguageOptions(const llvm::SmallVectorImpl<uint64_t> &Record); QualType ReadTypeRecord(uint64_t Offset); |