summaryrefslogtreecommitdiff
path: root/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-07-25 20:52:26 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-07-25 20:52:26 +0000
commitf84ef95ecec34f27fd05eb4e0392ca6bd3bd0be0 (patch)
treebf7176de44ab7f4ea84470b94c18f1b9c26f0a39 /lib/Basic/SourceManager.cpp
parent999f739404edf2078cf9f9c28b4dc45c19765842 (diff)
downloadclang-f84ef95ecec34f27fd05eb4e0392ca6bd3bd0be0.tar.gz
getInstantiationLocSlowCase -> getExpansionLocSlowCase
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135961 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/SourceManager.cpp')
-rw-r--r--lib/Basic/SourceManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Basic/SourceManager.cpp b/lib/Basic/SourceManager.cpp
index 30ea39e8a4..63f2364925 100644
--- a/lib/Basic/SourceManager.cpp
+++ b/lib/Basic/SourceManager.cpp
@@ -783,11 +783,11 @@ FileID SourceManager::getFileIDLoaded(unsigned SLocOffset) const {
}
SourceLocation SourceManager::
-getInstantiationLocSlowCase(SourceLocation Loc) const {
+getExpansionLocSlowCase(SourceLocation Loc) const {
do {
// Note: If Loc indicates an offset into a token that came from a macro
// expansion (e.g. the 5th character of the token) we do not want to add
- // this offset when going to the instantiation location. The instatiation
+ // this offset when going to the instantiation location. The expansion
// location is the macro invocation, which the offset has nothing to do
// with. This is unlike when we get the spelling loc, because the offset
// directly correspond to the token whose spelling we're inspecting.