Index: unittest/BitcodeMunge.cpp |
diff --git a/unittest/BitcodeMunge.cpp b/unittest/BitcodeMunge.cpp |
index 2b7b91837c6fe9b83a5f4a6aeefd76cef1195383..fd7100ca74dad7f997e2d8b6f3d55b4edffdff18 100644 |
--- a/unittest/BitcodeMunge.cpp |
+++ b/unittest/BitcodeMunge.cpp |
@@ -28,10 +28,11 @@ bool IceTest::SubzeroBitcodeMunger::runTest(const char *TestName, |
Ice::ClFlags Flags; |
Flags.setAllowErrorRecovery(true); |
Flags.setGenerateUnitTestMessages(true); |
+ Flags.setOptLevel(Ice::Opt_m1); |
Flags.setOutFileType(Ice::FT_Iasm); |
- Ice::GlobalContext Ctx(DumpStream, DumpStream, nullptr, |
- Ice::IceV_Instructions, Ice::Target_X8632, Ice::Opt_m1, |
- "", Flags); |
+ Flags.setTargetArch(Ice::Target_X8632); |
+ Flags.setVerbose(Ice::IceV_Instructions); |
+ Ice::GlobalContext Ctx(DumpStream, DumpStream, nullptr, Flags); |
Ice::PNaClTranslator Translator(&Ctx); |
Translator.translateBuffer(TestName, MungedInput.get()); |