mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 00:21:03 +00:00
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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user