aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic/SourceManager.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-11-09 23:59:17 +0000
committerChris Lattner <sabre@nondot.org>2007-11-09 23:59:17 +0000
commit18807d2bfb9282a35b921b4feeda09ffaa110e6b (patch)
tree2ac563f99102b4c65f9810eb50de2417b366411a /include/clang/Basic/SourceManager.h
parentb7489d8129136437953d412e2a6cf0ef87f4a461 (diff)
rename getInstantiationLoc to match the scheme of isPhysicalLoc.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43969 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceManager.h')
-rw-r--r--include/clang/Basic/SourceManager.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/clang/Basic/SourceManager.h b/include/clang/Basic/SourceManager.h
index b08886efa5..672a2c18b5 100644
--- a/include/clang/Basic/SourceManager.h
+++ b/include/clang/Basic/SourceManager.h
@@ -130,18 +130,18 @@ namespace SrcMgr {
/// the token came from. An actual macro SourceLocation stores deltas from
/// these positions.
class MacroIDInfo {
- SourceLocation InstantiationLoc, PhysicalLoc;
+ SourceLocation VirtualLoc, PhysicalLoc;
public:
- SourceLocation getInstantiationLoc() const { return InstantiationLoc; }
+ SourceLocation getVirtualLoc() const { return VirtualLoc; }
SourceLocation getPhysicalLoc() const { return PhysicalLoc; }
- /// get - Return a MacroID for a macro expansion. IL specifies
- /// the instantiation location, and PL specifies the physical location
- /// (where the characters from the token come from). Both IL and PL refer
- /// to normal File SLocs.
- static MacroIDInfo get(SourceLocation IL, SourceLocation PL) {
+ /// get - Return a MacroID for a macro expansion. VL specifies
+ /// the instantiation location (where the macro is expanded), and PL
+ /// specifies the physical location (where the characters from the token
+ /// come from). Both VL and PL refer to normal File SLocs.
+ static MacroIDInfo get(SourceLocation VL, SourceLocation PL) {
MacroIDInfo X;
- X.InstantiationLoc = IL;
+ X.VirtualLoc = VL;
X.PhysicalLoc = PL;
return X;
}
@@ -291,7 +291,7 @@ public:
// File locations are both physical and logical.
if (Loc.isFileID()) return Loc;
- return MacroIDs[Loc.getMacroID()].getInstantiationLoc();
+ return MacroIDs[Loc.getMacroID()].getVirtualLoc();
}
/// getPhysicalLoc - Given a SourceLocation object, return the physical