aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-01-16 07:15:35 +0000
committerChris Lattner <sabre@nondot.org>2009-01-16 07:15:35 +0000
commit3c91971b3391a6aa7f48ee11986813204006adf9 (patch)
treeadd32f4e72bc63dfbd849aa4ef985b301bfc37a6 /clang/lib/Basic/SourceManager.cpp
parentc4c181902e3bfd5f813676938fa22ef09b78396c (diff)
downloadllvm-3c91971b3391a6aa7f48ee11986813204006adf9.zip
llvm-3c91971b3391a6aa7f48ee11986813204006adf9.tar.gz
llvm-3c91971b3391a6aa7f48ee11986813204006adf9.tar.bz2
rename "virtual location" of a macro to "instantiation location".
llvm-svn: 62315
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
-rw-r--r--clang/lib/Basic/SourceManager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Basic/SourceManager.cpp b/clang/lib/Basic/SourceManager.cpp
index 719d29a..55e8c4a 100644
--- a/clang/lib/Basic/SourceManager.cpp
+++ b/clang/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;
}