[cfe-commits] r63034 - /cfe/trunk/lib/Basic/SourceManager.cpp
Chris Lattner
sabre at nondot.org
Mon Jan 26 12:08:26 PST 2009
Author: lattner
Date: Mon Jan 26 14:08:26 2009
New Revision: 63034
URL: http://llvm.org/viewvc/llvm-project?rev=63034&view=rev
Log:
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.
Modified:
cfe/trunk/lib/Basic/SourceManager.cpp
Modified: cfe/trunk/lib/Basic/SourceManager.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/SourceManager.cpp?rev=63034&r1=63033&r2=63034&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/SourceManager.cpp (original)
+++ cfe/trunk/lib/Basic/SourceManager.cpp Mon Jan 26 14:08:26 2009
@@ -201,14 +201,6 @@
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)));
More information about the cfe-commits
mailing list