mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
Emit exception handling info for functions which are
not marked nounwind, or for all functions when -enable-eh is set, provided the target supports Dwarf EH. llvm-gcc generates nounwind in the right places; other FEs will need to do so also. Given such a FE, -enable-eh should no longer be needed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49006 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -66,8 +66,7 @@ LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM,
|
||||
|
||||
PM.add(createGCLoweringPass());
|
||||
|
||||
if (!ExceptionHandling)
|
||||
PM.add(createLowerInvokePass(getTargetLowering()));
|
||||
PM.add(createLowerInvokePass(getTargetLowering()));
|
||||
|
||||
// Make sure that no unreachable blocks are instruction selected.
|
||||
PM.add(createUnreachableBlockEliminationPass());
|
||||
@@ -192,8 +191,7 @@ bool LLVMTargetMachine::addPassesToEmitMachineCode(PassManagerBase &PM,
|
||||
|
||||
PM.add(createGCLoweringPass());
|
||||
|
||||
if (!ExceptionHandling)
|
||||
PM.add(createLowerInvokePass(getTargetLowering()));
|
||||
PM.add(createLowerInvokePass(getTargetLowering()));
|
||||
|
||||
// Make sure that no unreachable blocks are instruction selected.
|
||||
PM.add(createUnreachableBlockEliminationPass());
|
||||
|
Reference in New Issue
Block a user