aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-26 00:34:27 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-26 00:34:27 +0000
commit3f53fa9a51c4ce7ba81170ca7ab2e49bd37281b0 (patch)
treeea60892da462b9e0808f7e0aec8ef8d2a804d4db /tools
parentd1319ef308ffe3e5de2f90ee11892ff43adbea13 (diff)
downloadexternal_llvm-3f53fa9a51c4ce7ba81170ca7ab2e49bd37281b0.zip
external_llvm-3f53fa9a51c4ce7ba81170ca7ab2e49bd37281b0.tar.gz
external_llvm-3f53fa9a51c4ce7ba81170ca7ab2e49bd37281b0.tar.bz2
Remove Value::setName(const char*, unsigned).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77100 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/bugpoint/ExtractFunction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/bugpoint/ExtractFunction.cpp b/tools/bugpoint/ExtractFunction.cpp
index f0e9af7..41704f9 100644
--- a/tools/bugpoint/ExtractFunction.cpp
+++ b/tools/bugpoint/ExtractFunction.cpp
@@ -269,8 +269,8 @@ llvm::SplitFunctionsOutOfModule(Module *M,
I->setLinkage(GlobalValue::ExternalLinkage);
for (Module::global_iterator I = M->global_begin(), E = M->global_end();
I != E; ++I) {
- if (I->hasName() && *I->getNameStart() == '\01')
- I->setName(I->getNameStart()+1, I->getNameLen()-1);
+ if (I->hasName() && I->getName()[0] == '\01')
+ I->setName(I->getName().substr(1));
I->setLinkage(GlobalValue::ExternalLinkage);
}