summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h')
-rw-r--r--llvm/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/llvm/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h b/llvm/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h
index e14201c2d78..a768920ff47 100644
--- a/llvm/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h
+++ b/llvm/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h
@@ -278,14 +278,9 @@ protected:
class MCJITTestBase : public MCJITTestAPICommon, public TrivialModuleBuilder {
protected:
-
MCJITTestBase()
- : TrivialModuleBuilder(HostTriple)
- , OptLevel(CodeGenOpt::None)
- , CodeModel(CodeModel::Default)
- , MArch("")
- , MM(new SectionMemoryManager)
- {
+ : TrivialModuleBuilder(HostTriple), OptLevel(CodeGenOpt::None),
+ CodeModel(CodeModel::Small), MArch(""), MM(new SectionMemoryManager) {
// The architectures below are known to be compatible with MCJIT as they
// are copied from test/ExecutionEngine/MCJIT/lit.local.cfg and should be
// kept in sync.
@@ -320,7 +315,6 @@ protected:
.setMCJITMemoryManager(std::move(MM))
.setErrorStr(&Error)
.setOptLevel(CodeGenOpt::None)
- .setCodeModel(CodeModel::JITDefault)
.setMArch(MArch)
.setMCPU(sys::getHostCPUName())
//.setMAttrs(MAttrs)
OpenPOWER on IntegriCloud