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
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp
index c64c101..fe868d0 100644
--- a/lib/AST/ASTContext.cpp
+++ b/lib/AST/ASTContext.cpp
@@ -2488,6 +2488,7 @@
//===----------------------------------------------------------------------===//
// Integer Predicates
//===----------------------------------------------------------------------===//
+
unsigned ASTContext::getIntWidth(QualType T) {
if (T == BoolTy)
return 1;
diff --git a/lib/Basic/SourceManager.cpp b/lib/Basic/SourceManager.cpp
index 719d29a..55e8c4a 100644
--- a/lib/Basic/SourceManager.cpp
+++ b/lib/Basic/SourceManager.cpp
@@ -166,7 +166,7 @@
// 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 @@
}
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;
}