Unbreak unittests build.

- Reid, please check, I'm not sure if this is what was intended.

llvm-svn: 76286
This commit is contained in:
Daniel Dunbar 2009-07-18 06:08:49 +00:00
parent e1b9216bc3
commit 38e46c46b4
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ class JITEventListenerTest : public testing::Test {
JITEventListenerTest()
: M(new Module("module", getGlobalContext())),
EE(EngineBuilder(M)
.setEngineToCreate(EngineBuilder::ENG_JIT)
.setEngineKind(EngineKind::JIT)
.create()) {
}

View File

@ -62,7 +62,7 @@ TEST(JIT, GlobalInFunction) {
MemMgr->setPoisonMemory(true);
std::string Error;
OwningPtr<ExecutionEngine> JIT(EngineBuilder(MP)
.setEnginePreference(EngineBuilder::JITONLY)
.setEngineKind(EngineKind::JIT)
.setErrorStr(&Error)
.setJITMemoryManager(MemMgr)
// The next line enables the fix: