mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
Lower eh filter intrinsic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34802 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c3c1ca0f9c
commit
0b4711bd94
@ -358,6 +358,7 @@ void IntrinsicLowering::LowerIntrinsicCall(CallInst *CI) {
|
||||
case Intrinsic::dbg_declare:
|
||||
case Intrinsic::eh_exception:
|
||||
case Intrinsic::eh_selector:
|
||||
case Intrinsic::eh_filter:
|
||||
break; // Simply strip out debugging and eh intrinsics
|
||||
|
||||
case Intrinsic::memcpy_i32:
|
||||
|
@ -2110,7 +2110,8 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
case Intrinsic::eh_selector: {
|
||||
case Intrinsic::eh_selector:
|
||||
case Intrinsic::eh_filter:{
|
||||
MachineModuleInfo *MMI = DAG.getMachineModuleInfo();
|
||||
|
||||
if (MMI) {
|
||||
@ -2120,6 +2121,8 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) {
|
||||
isa<Function>(CE->getOperand(0)) &&
|
||||
"Personality should be a function");
|
||||
MMI->addPersonality(CurMBB, cast<Function>(CE->getOperand(0)));
|
||||
if (Intrinsic == Intrinsic::eh_filter)
|
||||
MMI->setIsFilterLandingPad(CurMBB);
|
||||
|
||||
// Gather all the type infos for this landing pad and pass them along to
|
||||
// MachineModuleInfo.
|
||||
|
Loading…
x
Reference in New Issue
Block a user