diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-19 20:40:19 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-19 20:40:19 +0000 |
commit | e6e67deeed359c86ad74bd5525df676d7914faef (patch) | |
tree | f8c61b642403a5e8d30f832078f73293adbbd814 /clang/lib/ARCMigrate/TransformActions.cpp | |
parent | c284238aa2ea862c3c93cda2351bb6032246c4e5 (diff) | |
download | bcm5719-llvm-e6e67deeed359c86ad74bd5525df676d7914faef.tar.gz bcm5719-llvm-e6e67deeed359c86ad74bd5525df676d7914faef.zip |
Rename SourceLocation::getFileLocWithOffset -> getLocWithOffset.
It already works (and is useful with) macro locs as well.
llvm-svn: 140057
Diffstat (limited to 'clang/lib/ARCMigrate/TransformActions.cpp')
-rw-r--r-- | clang/lib/ARCMigrate/TransformActions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/ARCMigrate/TransformActions.cpp b/clang/lib/ARCMigrate/TransformActions.cpp index 65623a1b313..1321686ca66 100644 --- a/clang/lib/ARCMigrate/TransformActions.cpp +++ b/clang/lib/ARCMigrate/TransformActions.cpp @@ -479,7 +479,7 @@ void TransformActionsImpl::commitReplaceText(SourceLocation loc, SourceManager &SM = Ctx.getSourceManager(); loc = SM.getExpansionLoc(loc); // canReplaceText already checked if loc points at text. - SourceLocation afterText = loc.getFileLocWithOffset(text.size()); + SourceLocation afterText = loc.getLocWithOffset(text.size()); addRemoval(CharSourceRange::getCharRange(loc, afterText)); commitInsert(loc, replacementText); |