diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-26 20:08:26 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-26 20:08:26 +0000 |
commit | 3c125576d971dfd4d81be93813a8896f302d992b (patch) | |
tree | 2603034feb4625f59e9ea7126447b120766c4c41 /lib/Basic/SourceManager.cpp | |
parent | addb797ca2b5afc1a1e82fd8d5d6eb2a592e75a9 (diff) |
now that everything properly handles multiply instantiated
source locations, allow creation of them. We can now say that
a token was instantiated here, then here, then here.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63034 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/SourceManager.cpp')
-rw-r--r-- | lib/Basic/SourceManager.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/Basic/SourceManager.cpp b/lib/Basic/SourceManager.cpp index f9f51afef8..6c82b9bf2e 100644 --- a/lib/Basic/SourceManager.cpp +++ b/lib/Basic/SourceManager.cpp @@ -201,14 +201,6 @@ FileID SourceManager::createFileID(const ContentCache *File, SourceLocation SourceManager::createInstantiationLoc(SourceLocation SpellingLoc, SourceLocation InstantLoc, unsigned TokLength) { - // The specified source location may be a mapped location, due to a macro - // instantiation or #line directive. Strip off this information to find out - // where the characters are actually located. - SpellingLoc = getSpellingLoc(SpellingLoc); - - // Resolve InstantLoc down to a real instantiation location. - InstantLoc = getInstantiationLoc(InstantLoc); - SLocEntryTable.push_back(SLocEntry::get(NextOffset, InstantiationInfo::get(InstantLoc, SpellingLoc))); |