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 | 2d86c700bfb4f4c3345a8ab897ed841082a69005 (patch) | |
tree | b9f86883f07387b418c858799a05b7a83cf8fd0a /clang/lib/Basic/SourceManager.cpp | |
parent | 659ac5f08775966b6c24eac74dbf5f8bc4628869 (diff) | |
download | bcm5719-llvm-2d86c700bfb4f4c3345a8ab897ed841082a69005.tar.gz bcm5719-llvm-2d86c700bfb4f4c3345a8ab897ed841082a69005.zip |
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.
llvm-svn: 63034
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
-rw-r--r-- | clang/lib/Basic/SourceManager.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/lib/Basic/SourceManager.cpp b/clang/lib/Basic/SourceManager.cpp index f9f51afef84..6c82b9bf2e8 100644 --- a/clang/lib/Basic/SourceManager.cpp +++ b/clang/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))); |