aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic/SourceLocation.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-05-06 21:43:30 +0000
committerDouglas Gregor <dgregor@apple.com>2011-05-06 21:43:30 +0000
commit31d375f056447d4e2418275d4913661d3bfedb3e (patch)
tree2d5853cbd1cad1f2d96875ef9f78ec314506df2e /include/clang/Basic/SourceLocation.h
parent6bd2f6ad857949d4dfb6e75e0760c61950b917cf (diff)
Keep track of the file ID corresponding to the original file used to
build a precompiled header. Use this information to eliminate the call to SourceManager::getLocation() while loading a precompiled preamble, since SourceManager::getLocation() itself causes unwanted deserialization. Fixed <rdar://problem/9399352>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131021 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceLocation.h')
-rw-r--r--include/clang/Basic/SourceLocation.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/clang/Basic/SourceLocation.h b/include/clang/Basic/SourceLocation.h
index 14bb2b724f..ee5f96fe93 100644
--- a/include/clang/Basic/SourceLocation.h
+++ b/include/clang/Basic/SourceLocation.h
@@ -54,6 +54,9 @@ public:
private:
friend class SourceManager;
+ friend class ASTWriter;
+ friend class ASTReader;
+
static FileID get(unsigned V) {
FileID F;
F.ID = V;