mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-18 22:38:56 +00:00
Do not generate special entries in the dwarf eh
table for nounwind calls. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48373 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9453295a29
commit
23a1d0c161
@ -3134,11 +3134,7 @@ void SelectionDAGLowering::LowerCallTo(CallSite CS, SDOperand Callee,
|
|||||||
Args.push_back(Entry);
|
Args.push_back(Entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MarkTryRange = LandingPad ||
|
if (LandingPad && ExceptionHandling && MMI) {
|
||||||
// C++ requires special handling of 'nounwind' calls.
|
|
||||||
(CS.doesNotThrow());
|
|
||||||
|
|
||||||
if (MarkTryRange && ExceptionHandling && MMI) {
|
|
||||||
// Insert a label before the invoke call to mark the try range. This can be
|
// Insert a label before the invoke call to mark the try range. This can be
|
||||||
// used to detect deletion of the invoke via the MachineModuleInfo.
|
// used to detect deletion of the invoke via the MachineModuleInfo.
|
||||||
BeginLabel = MMI->NextLabelID();
|
BeginLabel = MMI->NextLabelID();
|
||||||
@ -3157,7 +3153,7 @@ void SelectionDAGLowering::LowerCallTo(CallSite CS, SDOperand Callee,
|
|||||||
setValue(CS.getInstruction(), Result.first);
|
setValue(CS.getInstruction(), Result.first);
|
||||||
DAG.setRoot(Result.second);
|
DAG.setRoot(Result.second);
|
||||||
|
|
||||||
if (MarkTryRange && ExceptionHandling && MMI) {
|
if (LandingPad && ExceptionHandling && MMI) {
|
||||||
// Insert a label at the end of the invoke call to mark the try range. This
|
// Insert a label at the end of the invoke call to mark the try range. This
|
||||||
// can be used to detect deletion of the invoke via the MachineModuleInfo.
|
// can be used to detect deletion of the invoke via the MachineModuleInfo.
|
||||||
EndLabel = MMI->NextLabelID();
|
EndLabel = MMI->NextLabelID();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user