mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +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:
@@ -548,7 +548,7 @@ static bool LinkGlobals(Module *Dest, const Module *Src,
|
||||
// Check to see if may have to link the global with the global, alias or
|
||||
// function.
|
||||
if (SGV->hasName() && !SGV->hasLocalLinkage())
|
||||
DGV = cast_or_null<GlobalValue>(DestSymTab.lookup(SGV->getNameRef()));
|
||||
DGV = cast_or_null<GlobalValue>(DestSymTab.lookup(SGV->getName()));
|
||||
|
||||
// If we found a global with the same name in the dest module, but it has
|
||||
// internal linkage, we are really not doing any linkage here.
|
||||
@@ -941,7 +941,7 @@ static bool LinkFunctionProtos(Module *Dest, const Module *Src,
|
||||
// Check to see if may have to link the function with the global, alias or
|
||||
// function.
|
||||
if (SF->hasName() && !SF->hasLocalLinkage())
|
||||
DGV = cast_or_null<GlobalValue>(DestSymTab.lookup(SF->getNameRef()));
|
||||
DGV = cast_or_null<GlobalValue>(DestSymTab.lookup(SF->getName()));
|
||||
|
||||
// If we found a global with the same name in the dest module, but it has
|
||||
// internal linkage, we are really not doing any linkage here.
|
||||
|
Reference in New Issue
Block a user