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
This commit is contained in:
Daniel Dunbar
2009-07-26 09:48:23 +00:00
parent 4fa4990bdc
commit 460f656475
21 changed files with 67 additions and 81 deletions

View File

@@ -329,7 +329,7 @@ bool DISubprogram::describes(const Function *F) {
getLinkageName(Name);
if (Name.empty())
getName(Name);
if (!Name.empty() && (strcmp(Name.c_str(), F->getNameStart()) == false))
if (F->getName() == Name)
return true;
return false;
}
@@ -1057,7 +1057,7 @@ namespace llvm {
for (Module::global_iterator GVI = M.global_begin(), E = M.global_end();
GVI != E; GVI++) {
GlobalVariable *GV = GVI;
if (GV->hasName() && strncmp(GV->getNameStart(), "llvm.dbg", 8) == 0
if (GV->hasName() && GV->getName().startswith("llvm.dbg")
&& GV->isConstant() && GV->hasInitializer()) {
DICompileUnit C(GV);
if (C.isNull() == false) {