mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Enable exception handling if it is supported.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46560 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -31,6 +31,7 @@
|
|||||||
#include "llvm/Analysis/Verifier.h"
|
#include "llvm/Analysis/Verifier.h"
|
||||||
#include "llvm/CodeGen/FileWriters.h"
|
#include "llvm/CodeGen/FileWriters.h"
|
||||||
#include "llvm/Target/SubtargetFeature.h"
|
#include "llvm/Target/SubtargetFeature.h"
|
||||||
|
#include "llvm/Target/TargetOptions.h"
|
||||||
#include "llvm/Target/TargetData.h"
|
#include "llvm/Target/TargetData.h"
|
||||||
#include "llvm/Target/TargetMachine.h"
|
#include "llvm/Target/TargetMachine.h"
|
||||||
#include "llvm/Target/TargetMachineRegistry.h"
|
#include "llvm/Target/TargetMachineRegistry.h"
|
||||||
@@ -266,7 +267,11 @@ LTO::optimize(Module *M, std::ostream &Out,
|
|||||||
|
|
||||||
if (!Target)
|
if (!Target)
|
||||||
return LTO_NO_TARGET;
|
return LTO_NO_TARGET;
|
||||||
|
|
||||||
|
// If target supports exception handling then enable it now.
|
||||||
|
if (Target->getTargetAsmInfo()->doesSupportExceptionHandling())
|
||||||
|
ExceptionHandling = true;
|
||||||
|
|
||||||
// Start off with a verification pass.
|
// Start off with a verification pass.
|
||||||
Passes.add(createVerifierPass());
|
Passes.add(createVerifierPass());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user