mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 05:25:47 +00:00
ExecutionEngine: avoid NDEBUG in headers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209981 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -586,26 +586,7 @@ private:
|
|||||||
bool VerifyModules;
|
bool VerifyModules;
|
||||||
|
|
||||||
/// InitEngine - Does the common initialization of default options.
|
/// InitEngine - Does the common initialization of default options.
|
||||||
void InitEngine() {
|
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
|
|
||||||
}
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/// EngineBuilder - Constructor for EngineBuilder. If create() is called and
|
/// 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);
|
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) {
|
ExecutionEngine *EngineBuilder::create(TargetMachine *TM) {
|
||||||
std::unique_ptr<TargetMachine> TheTM(TM); // Take ownership.
|
std::unique_ptr<TargetMachine> TheTM(TM); // Take ownership.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user