diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-16 07:15:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-16 07:15:35 +0000 |
commit | 88054dee0402e4d3c1f64e6b697acc47195c0d72 (patch) | |
tree | 19693f2190bb2839f179e07560f1b16ce229b19f /include/clang/Basic/SourceManager.h | |
parent | 0c21e84b82191ae1c4d04444a84008c464433868 (diff) |
rename "virtual location" of a macro to "instantiation location".
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62315 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceManager.h')
-rw-r--r-- | include/clang/Basic/SourceManager.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/clang/Basic/SourceManager.h b/include/clang/Basic/SourceManager.h index bc8c854187..f7e160deeb 100644 --- a/include/clang/Basic/SourceManager.h +++ b/include/clang/Basic/SourceManager.h @@ -187,9 +187,9 @@ namespace SrcMgr { /// the token came from. An actual macro SourceLocation stores deltas from /// these positions. class MacroIDInfo { - SourceLocation VirtualLoc, SpellingLoc; + SourceLocation InstantiationLoc, SpellingLoc; public: - SourceLocation getVirtualLoc() const { return VirtualLoc; } + SourceLocation getInstantiationLoc() const { return InstantiationLoc; } SourceLocation getSpellingLoc() const { return SpellingLoc; } /// get - Return a MacroID for a macro expansion. VL specifies @@ -198,7 +198,7 @@ namespace SrcMgr { /// come from). Both VL and PL refer to normal File SLocs. static MacroIDInfo get(SourceLocation VL, SourceLocation SL) { MacroIDInfo X; - X.VirtualLoc = VL; + X.InstantiationLoc = VL; X.SpellingLoc = SL; return X; } @@ -384,7 +384,7 @@ public: // File locations work. if (Loc.isFileID()) return Loc; - return MacroIDs[Loc.getMacroID()].getVirtualLoc(); + return MacroIDs[Loc.getMacroID()].getInstantiationLoc(); } /// getSpellingLoc - Given a SourceLocation object, return the spelling |