mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
ExecutionEngine: avoid NDEBUG in headers
llvm-svn: 209981
This commit is contained in:
parent
f3f3560e44
commit
c6984bfa5e
@ -586,26 +586,7 @@ private:
|
||||
bool VerifyModules;
|
||||
|
||||
/// InitEngine - Does the common initialization of default options.
|
||||
void InitEngine() {
|
||||
WhichEngine = EngineKind::Either;
|
||||
ErrorStr = nullptr;
|
||||
OptLevel = CodeGenOpt::Default;
|
||||
MCJMM = nullptr;
|
||||
JMM = nullptr;
|
||||
Options = TargetOptions();
|
||||
AllocateGVsWithCode = false;
|
||||
RelocModel = Reloc::Default;
|
||||
CMModel = CodeModel::JITDefault;
|
||||
UseMCJIT = false;
|
||||
|
||||
// IR module verification is enabled by default in debug builds, and disabled
|
||||
// by default in release builds.
|
||||
#ifndef NDEBUG
|
||||
VerifyModules = true;
|
||||
#else
|
||||
VerifyModules = false;
|
||||
#endif
|
||||
}
|
||||
void InitEngine();
|
||||
|
||||
public:
|
||||
/// EngineBuilder - Constructor for EngineBuilder. If create() is called and
|
||||
|
@ -457,6 +457,27 @@ ExecutionEngine *ExecutionEngine::createJIT(Module *M,
|
||||
return ExecutionEngine::JITCtor(M, ErrorStr, JMM, GVsWithCode, TM);
|
||||
}
|
||||
|
||||
void EngineBuilder::InitEngine() {
|
||||
WhichEngine = EngineKind::Either;
|
||||
ErrorStr = nullptr;
|
||||
OptLevel = CodeGenOpt::Default;
|
||||
MCJMM = nullptr;
|
||||
JMM = nullptr;
|
||||
Options = TargetOptions();
|
||||
AllocateGVsWithCode = false;
|
||||
RelocModel = Reloc::Default;
|
||||
CMModel = CodeModel::JITDefault;
|
||||
UseMCJIT = false;
|
||||
|
||||
// IR module verification is enabled by default in debug builds, and disabled
|
||||
// by default in release builds.
|
||||
#ifndef NDEBUG
|
||||
VerifyModules = true;
|
||||
#else
|
||||
VerifyModules = false;
|
||||
#endif
|
||||
}
|
||||
|
||||
ExecutionEngine *EngineBuilder::create(TargetMachine *TM) {
|
||||
std::unique_ptr<TargetMachine> TheTM(TM); // Take ownership.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user