aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic/SourceManager.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-11-09 23:52:16 +0000
committerChris Lattner <sabre@nondot.org>2007-11-09 23:52:16 +0000
commitb7489d8129136437953d412e2a6cf0ef87f4a461 (patch)
treed9ac35c154357f87ae8134c4fceb424d8475dd83 /include/clang/Basic/SourceManager.h
parent360300ca2ee298d585d29baf006519507d968812 (diff)
change source location to have two bits for macros, tracking
whether the location is the start and/or end of an expansion. These are currently not set or used by anything. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43968 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceManager.h')
-rw-r--r--include/clang/Basic/SourceManager.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/clang/Basic/SourceManager.h b/include/clang/Basic/SourceManager.h
index 6392e899e3..b08886efa5 100644
--- a/include/clang/Basic/SourceManager.h
+++ b/include/clang/Basic/SourceManager.h
@@ -291,8 +291,7 @@ public:
// File locations are both physical and logical.
if (Loc.isFileID()) return Loc;
- SourceLocation ILoc = MacroIDs[Loc.getMacroID()].getInstantiationLoc();
- return ILoc.getFileLocWithOffset(Loc.getMacroLogOffs());
+ return MacroIDs[Loc.getMacroID()].getInstantiationLoc();
}
/// getPhysicalLoc - Given a SourceLocation object, return the physical