mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 06:31:18 +00:00
Simplify a few more things, eliminating a few more dependencies on
"the current basic block". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79069 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0d24bfbf92
commit
bd51c67739
@ -211,7 +211,6 @@ private:
|
|||||||
/// GOT address into a register.
|
/// GOT address into a register.
|
||||||
///
|
///
|
||||||
SDNode *AlphaDAGToDAGISel::getGlobalBaseReg() {
|
SDNode *AlphaDAGToDAGISel::getGlobalBaseReg() {
|
||||||
MachineFunction *MF = BB->getParent();
|
|
||||||
unsigned GlobalBaseReg = getInstrInfo()->getGlobalBaseReg(MF);
|
unsigned GlobalBaseReg = getInstrInfo()->getGlobalBaseReg(MF);
|
||||||
return CurDAG->getRegister(GlobalBaseReg, TLI.getPointerTy()).getNode();
|
return CurDAG->getRegister(GlobalBaseReg, TLI.getPointerTy()).getNode();
|
||||||
}
|
}
|
||||||
@ -219,7 +218,6 @@ SDNode *AlphaDAGToDAGISel::getGlobalBaseReg() {
|
|||||||
/// getGlobalRetAddr - Grab the return address.
|
/// getGlobalRetAddr - Grab the return address.
|
||||||
///
|
///
|
||||||
SDNode *AlphaDAGToDAGISel::getGlobalRetAddr() {
|
SDNode *AlphaDAGToDAGISel::getGlobalRetAddr() {
|
||||||
MachineFunction *MF = BB->getParent();
|
|
||||||
unsigned GlobalRetAddr = getInstrInfo()->getGlobalRetAddr(MF);
|
unsigned GlobalRetAddr = getInstrInfo()->getGlobalRetAddr(MF);
|
||||||
return CurDAG->getRegister(GlobalRetAddr, TLI.getPointerTy()).getNode();
|
return CurDAG->getRegister(GlobalRetAddr, TLI.getPointerTy()).getNode();
|
||||||
}
|
}
|
||||||
|
@ -282,7 +282,7 @@ SDNode *PPCDAGToDAGISel::getGlobalBaseReg() {
|
|||||||
if (!GlobalBaseReg) {
|
if (!GlobalBaseReg) {
|
||||||
const TargetInstrInfo &TII = *TM.getInstrInfo();
|
const TargetInstrInfo &TII = *TM.getInstrInfo();
|
||||||
// Insert the set of GlobalBaseReg into the first MBB of the function
|
// Insert the set of GlobalBaseReg into the first MBB of the function
|
||||||
MachineBasicBlock &FirstMBB = BB->getParent()->front();
|
MachineBasicBlock &FirstMBB = MF->front();
|
||||||
MachineBasicBlock::iterator MBBI = FirstMBB.begin();
|
MachineBasicBlock::iterator MBBI = FirstMBB.begin();
|
||||||
DebugLoc dl = DebugLoc::getUnknownLoc();
|
DebugLoc dl = DebugLoc::getUnknownLoc();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user