mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-27 23:33:55 +00:00
Remove dead code from old 64-bit SEH lowering
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241829 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
db5a82b861
commit
5574399e37
@ -2050,30 +2050,6 @@ void SelectionDAGBuilder::visitLandingPad(const LandingPadInst &LP) {
|
||||
setValue(&LP, Res);
|
||||
}
|
||||
|
||||
unsigned
|
||||
SelectionDAGBuilder::visitLandingPadClauseBB(GlobalValue *ClauseGV,
|
||||
MachineBasicBlock *LPadBB) {
|
||||
SDValue Chain = getControlRoot();
|
||||
SDLoc dl = getCurSDLoc();
|
||||
|
||||
// Get the typeid that we will dispatch on later.
|
||||
const TargetLowering &TLI = DAG.getTargetLoweringInfo();
|
||||
const TargetRegisterClass *RC =
|
||||
TLI.getRegClassFor(TLI.getPointerTy(DAG.getDataLayout()));
|
||||
unsigned VReg = FuncInfo.MF->getRegInfo().createVirtualRegister(RC);
|
||||
unsigned TypeID = DAG.getMachineFunction().getMMI().getTypeIDFor(ClauseGV);
|
||||
SDValue Sel =
|
||||
DAG.getConstant(TypeID, dl, TLI.getPointerTy(DAG.getDataLayout()));
|
||||
Chain = DAG.getCopyToReg(Chain, dl, VReg, Sel);
|
||||
|
||||
// Branch to the main landing pad block.
|
||||
MachineBasicBlock *ClauseMBB = FuncInfo.MBB;
|
||||
ClauseMBB->addSuccessor(LPadBB);
|
||||
DAG.setRoot(DAG.getNode(ISD::BR, dl, MVT::Other, Chain,
|
||||
DAG.getBasicBlock(LPadBB)));
|
||||
return VReg;
|
||||
}
|
||||
|
||||
void SelectionDAGBuilder::sortAndRangeify(CaseClusterVector &Clusters) {
|
||||
#ifndef NDEBUG
|
||||
for (const CaseCluster &CC : Clusters)
|
||||
|
@ -755,8 +755,6 @@ public:
|
||||
void visitJumpTable(JumpTable &JT);
|
||||
void visitJumpTableHeader(JumpTable &JT, JumpTableHeader &JTH,
|
||||
MachineBasicBlock *SwitchBB);
|
||||
unsigned visitLandingPadClauseBB(GlobalValue *ClauseGV,
|
||||
MachineBasicBlock *LPadMBB);
|
||||
|
||||
private:
|
||||
// These all get lowered before this pass.
|
||||
|
Loading…
x
Reference in New Issue
Block a user