mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
Remove Value::{isName, getNameRef}.
Also, change MDString to use a StringRef. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77098 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -512,7 +512,7 @@ struct VISIBILITY_HIDDEN ExitOpt : public LibCallOptimization {
|
||||
|
||||
// Verify the caller is main, and that the result type of main matches the
|
||||
// argument type of exit.
|
||||
if (!Caller->isName("main") || !Caller->hasExternalLinkage() ||
|
||||
if (Caller->getName() != "main" || !Caller->hasExternalLinkage() ||
|
||||
Caller->getReturnType() != CI->getOperand(1)->getType())
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user