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 /lib/Basic/SourceManager.cpp | |
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 'lib/Basic/SourceManager.cpp')
-rw-r--r-- | lib/Basic/SourceManager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Basic/SourceManager.cpp b/lib/Basic/SourceManager.cpp index 719d29aa79..55e8c4aee7 100644 --- a/lib/Basic/SourceManager.cpp +++ b/lib/Basic/SourceManager.cpp @@ -166,7 +166,7 @@ SourceLocation SourceManager::getInstantiationLoc(SourceLocation SpellingLoc, // The instanitation point and source SpellingLoc have to exactly match to // reuse (for now). We could allow "nearby" instantiations in the future. - if (LastOne.getVirtualLoc() != InstantLoc || + if (LastOne.getInstantiationLoc() != InstantLoc || LastOne.getSpellingLoc().getFileID() != SpellingLoc.getFileID()) continue; @@ -480,13 +480,13 @@ FileIDInfo FileIDInfo::ReadVal(llvm::Deserializer& D) { } void MacroIDInfo::Emit(llvm::Serializer& S) const { - S.Emit(VirtualLoc); + S.Emit(InstantiationLoc); S.Emit(SpellingLoc); } MacroIDInfo MacroIDInfo::ReadVal(llvm::Deserializer& D) { MacroIDInfo I; - I.VirtualLoc = SourceLocation::ReadVal(D); + I.InstantiationLoc = SourceLocation::ReadVal(D); I.SpellingLoc = SourceLocation::ReadVal(D); return I; } |