mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
Simplify code a bit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18146 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9b3d989cb7
commit
64729d064a
@ -703,7 +703,7 @@ void PPC32ISel::copyConstantToRegister(MachineBasicBlock *MBB,
|
||||
BuildMI(*MBB, IP, PPC::LOADHiAddr, 2, TmpReg)
|
||||
.addReg(getGlobalBaseReg(MBB, IP)).addGlobalAddress(GV);
|
||||
|
||||
if (GV->hasWeakLinkage() || GV->isExternal() || dyn_cast<Function>(GV)) {
|
||||
if (GV->hasWeakLinkage() || GV->isExternal() || isa<Function>(GV)) {
|
||||
BuildMI(*MBB, IP, PPC::LWZ, 2, R).addGlobalAddress(GV).addReg(TmpReg);
|
||||
} else {
|
||||
BuildMI(*MBB, IP, PPC::LA, 2, R).addReg(TmpReg).addGlobalAddress(GV);
|
||||
|
Loading…
x
Reference in New Issue
Block a user