mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-04 18:24:38 +00:00
Delete getAliasedGlobal.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209040 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -277,7 +277,7 @@ getGlobalAddressWrapper(SDValue GA, const GlobalValue *GV,
|
||||
const GlobalValue *UnderlyingGV = GV;
|
||||
// If GV is an alias then use the aliasee to determine the wrapper type
|
||||
if (const GlobalAlias *GA = dyn_cast<GlobalAlias>(GV))
|
||||
UnderlyingGV = GA->getAliasedGlobal();
|
||||
UnderlyingGV = GA->getAliasee();
|
||||
if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(UnderlyingGV)) {
|
||||
if ( ( GVar->isConstant() &&
|
||||
UnderlyingGV->isLocalLinkage(GV->getLinkage()) )
|
||||
|
Reference in New Issue
Block a user