mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-27 14:07:32 +00:00
Flag to control exception handling.
llvm-svn: 33628
This commit is contained in:
parent
dd0a7887fa
commit
705f60ece9
@ -59,6 +59,11 @@ namespace llvm {
|
||||
/// .bss section. This flag disables such behaviour (necessary, e.g. for
|
||||
/// crt*.o compiling).
|
||||
extern bool NoZerosInBSS;
|
||||
|
||||
/// ExceptionHandling - This flag indicates that exception information should
|
||||
/// be emitted.
|
||||
extern bool ExceptionHandling;
|
||||
|
||||
} // End llvm namespace
|
||||
|
||||
#endif
|
||||
|
@ -29,8 +29,9 @@
|
||||
#include "llvm/Target/TargetAsmInfo.h"
|
||||
#include "llvm/Target/MRegisterInfo.h"
|
||||
#include "llvm/Target/TargetData.h"
|
||||
#include "llvm/Target/TargetMachine.h"
|
||||
#include "llvm/Target/TargetFrameInfo.h"
|
||||
#include "llvm/Target/TargetMachine.h"
|
||||
#include "llvm/Target/TargetOptions.h"
|
||||
#include <ostream>
|
||||
#include <string>
|
||||
using namespace llvm;
|
||||
@ -2675,7 +2676,7 @@ public:
|
||||
/// manager has created it. Set by the target AsmPrinter.
|
||||
void SetModuleInfo(MachineModuleInfo *mmi) {
|
||||
// Make sure initial declarations are made.
|
||||
if (!MMI && TAI->getSupportsExceptionHandling()) {
|
||||
if (!MMI && ExceptionHandling && TAI->getSupportsExceptionHandling()) {
|
||||
MMI = mmi;
|
||||
shouldEmit = true;
|
||||
}
|
||||
|
@ -29,6 +29,7 @@ namespace llvm {
|
||||
bool FiniteOnlyFPMathOption;
|
||||
bool UseSoftFloat;
|
||||
bool NoZerosInBSS;
|
||||
bool ExceptionHandling;
|
||||
Reloc::Model RelocationModel;
|
||||
CodeModel::Model CMModel;
|
||||
}
|
||||
@ -67,6 +68,11 @@ namespace {
|
||||
cl::desc("Don't place zero-initialized symbols into bss section"),
|
||||
cl::location(NoZerosInBSS),
|
||||
cl::init(false));
|
||||
cl::opt<bool, true>
|
||||
EnableExceptionHandling("exception-handling",
|
||||
cl::desc("Exception handling should be emitted."),
|
||||
cl::location(ExceptionHandling),
|
||||
cl::init(false));
|
||||
|
||||
cl::opt<llvm::Reloc::Model, true>
|
||||
DefRelocationModel(
|
||||
|
Loading…
Reference in New Issue
Block a user