summaryrefslogtreecommitdiffstats
path: root/clang/lib/ARCMigrate/TransBlockObjCVariable.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-07-25 16:49:02 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-07-25 16:49:02 +0000
commit35f5320d8e3bd080bd6316ef13716adf011d89e9 (patch)
treea2d1d3609f6570fff401687602ba90163047ef8a /clang/lib/ARCMigrate/TransBlockObjCVariable.cpp
parent163d675e727086abf65c91f6c898e672ca72ebfe (diff)
downloadbcm5719-llvm-35f5320d8e3bd080bd6316ef13716adf011d89e9.tar.gz
bcm5719-llvm-35f5320d8e3bd080bd6316ef13716adf011d89e9.zip
Mechanically rename SourceManager::getInstantiationLoc and
FullSourceLoc::getInstantiationLoc to ...::getExpansionLoc. This is part of the API and documentation update from 'instantiation' as the term for macros to 'expansion'. llvm-svn: 135914
Diffstat (limited to 'clang/lib/ARCMigrate/TransBlockObjCVariable.cpp')
-rw-r--r--clang/lib/ARCMigrate/TransBlockObjCVariable.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/ARCMigrate/TransBlockObjCVariable.cpp b/clang/lib/ARCMigrate/TransBlockObjCVariable.cpp
index 505b4ef8a0c..48c0ca9cefe 100644
--- a/clang/lib/ARCMigrate/TransBlockObjCVariable.cpp
+++ b/clang/lib/ARCMigrate/TransBlockObjCVariable.cpp
@@ -100,7 +100,7 @@ public:
bool useWeak = canApplyWeak(Pass.Ctx, var->getType());
SourceManager &SM = Pass.Ctx.getSourceManager();
Transaction Trans(Pass.TA);
- Pass.TA.replaceText(SM.getInstantiationLoc(attr->getLocation()),
+ Pass.TA.replaceText(SM.getExpansionLoc(attr->getLocation()),
"__block",
useWeak ? "__weak" : "__unsafe_unretained");
}
OpenPOWER on IntegriCloud