diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-16 07:00:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-16 07:00:02 +0000 |
commit | df7c17a8d02fe09a3466786bae3e40fc3252687a (patch) | |
tree | 95d529de847149d8b289646aab44be886d019c6f /lib/Lex/PTHLexer.cpp | |
parent | 860f6d4af5f37a151d5e5ea3538dc4708cab5d68 (diff) |
Change some terminology in SourceLocation: instead of referring to
the "physical" location of tokens, refer to the "spelling" location.
This is more concrete and useful, tokens aren't really physical objects!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62309 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PTHLexer.cpp')
-rw-r--r-- | lib/Lex/PTHLexer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Lex/PTHLexer.cpp b/lib/Lex/PTHLexer.cpp index 19ff4942a8..6401b9ac8f 100644 --- a/lib/Lex/PTHLexer.cpp +++ b/lib/Lex/PTHLexer.cpp @@ -422,7 +422,7 @@ unsigned PTHSpellingSearch::getSpellingBinarySearch(unsigned fpos, unsigned PTHLexer::getSpelling(SourceLocation sloc, const char *&Buffer) { SourceManager& SM = PP->getSourceManager(); - sloc = SM.getPhysicalLoc(sloc); + sloc = SM.getSpellingLoc(sloc); unsigned fid = SM.getCanonicalFileID(sloc); unsigned fpos = SM.getFullFilePos(sloc); |