From 2d86c700bfb4f4c3345a8ab897ed841082a69005 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 26 Jan 2009 20:08:26 +0000 Subject: 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 --- clang/lib/Basic/SourceManager.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'clang/lib/Basic/SourceManager.cpp') diff --git a/clang/lib/Basic/SourceManager.cpp b/clang/lib/Basic/SourceManager.cpp index f9f51af..6c82b9bf 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))); -- cgit v1.1