aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lto
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-26 09:48:23 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-26 09:48:23 +0000
commit460f656475738d1a95a6be95346908ce1597df25 (patch)
tree7a7ec0dc5ad33115b17ffed8902bf8cb7e5ab289 /tools/lto
parent4fa4990bdcb1fc2aa7831b1e6b113998366b2918 (diff)
downloadexternal_llvm-460f656475738d1a95a6be95346908ce1597df25.zip
external_llvm-460f656475738d1a95a6be95346908ce1597df25.tar.gz
external_llvm-460f656475738d1a95a6be95346908ce1597df25.tar.bz2
Remove Value::getName{Start,End}, the last of the old Name APIs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77152 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto')
-rw-r--r--tools/lto/LTOModule.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lto/LTOModule.cpp b/tools/lto/LTOModule.cpp
index 83dda0c..9968d48 100644
--- a/tools/lto/LTOModule.cpp
+++ b/tools/lto/LTOModule.cpp
@@ -327,7 +327,7 @@ void LTOModule::addDefinedSymbol(GlobalValue* def, Mangler &mangler,
bool isFunction)
{
// ignore all llvm.* symbols
- if ( strncmp(def->getNameStart(), "llvm.", 5) == 0 )
+ if (def->getName().startswith("llvm."))
return;
// string is owned by _defines
@@ -397,7 +397,7 @@ void LTOModule::addAsmGlobalSymbol(const char *name) {
void LTOModule::addPotentialUndefinedSymbol(GlobalValue* decl, Mangler &mangler)
{
// ignore all llvm.* symbols
- if ( strncmp(decl->getNameStart(), "llvm.", 5) == 0 )
+ if (decl->getName().startswith("llvm."))
return;
// ignore all aliases