aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-04-15 18:05:10 +0000
committerDouglas Gregor <dgregor@apple.com>2009-04-15 18:05:10 +0000
commitf60e9918690fcf02974bc1ebecd42c99d561855e (patch)
treec0cee978d4b0ad59d55c7acf821d38133a9fce6e /include/clang/Basic
parent1f0d0133b0e8d1f01f63951ee04927796b34740d (diff)
For source location entries that describe instantiations, encode the
token length in the PCH file rather than trying (and failing) to reconstruct it be getting the spelling token's length. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69191 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic')
-rw-r--r--include/clang/Basic/SourceManager.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/Basic/SourceManager.h b/include/clang/Basic/SourceManager.h
index 217640eaa5..e2c40a31c9 100644
--- a/include/clang/Basic/SourceManager.h
+++ b/include/clang/Basic/SourceManager.h
@@ -635,6 +635,8 @@ public:
return SLocEntryTable[FID.ID];
}
+ unsigned getNextOffset() const { return NextOffset; }
+
private:
friend class SrcMgr::ContentCache; // Used for deserialization.