Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Unified Diff: unittest/BitcodeMunge.cpp

Issue 1848303003: Simplify references to command line flags. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « unittest/BitcodeMunge.h ('k') | unittest/IceParseInstsTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: unittest/BitcodeMunge.cpp
diff --git a/unittest/BitcodeMunge.cpp b/unittest/BitcodeMunge.cpp
index 91564de54d6515f70b8eade93ad5cf06b59c8207..3da21ec03e0f5a27b5bade6a648cb54768351a00 100644
--- a/unittest/BitcodeMunge.cpp
+++ b/unittest/BitcodeMunge.cpp
@@ -20,13 +20,14 @@
namespace IceTest {
void IceTest::SubzeroBitcodeMunger::resetMungeFlags() {
- Flags.setAllowErrorRecovery(true);
- Flags.setGenerateUnitTestMessages(true);
- Flags.setOptLevel(Ice::Opt_m1);
- Flags.setOutFileType(Ice::FT_Iasm);
- Flags.setTargetArch(Ice::Target_X8632);
- Flags.setNumTranslationThreads(0);
- Flags.setParseParallel(false);
+ Ice::ClFlags::Flags.setAllowErrorRecovery(true);
+ Ice::ClFlags::Flags.setDisableTranslation(false);
+ Ice::ClFlags::Flags.setGenerateUnitTestMessages(true);
+ Ice::ClFlags::Flags.setOptLevel(Ice::Opt_m1);
+ Ice::ClFlags::Flags.setOutFileType(Ice::FT_Iasm);
+ Ice::ClFlags::Flags.setTargetArch(Ice::Target_X8632);
+ Ice::ClFlags::Flags.setNumTranslationThreads(0);
+ Ice::ClFlags::Flags.setParseParallel(false);
}
bool IceTest::SubzeroBitcodeMunger::runTest(const uint64_t Munges[],
@@ -38,7 +39,7 @@ bool IceTest::SubzeroBitcodeMunger::runTest(const uint64_t Munges[],
Ctx.startWorkerThreads();
Ice::PNaClTranslator Translator(&Ctx);
const char *BufferName = "Test";
- Flags.setDisableTranslation(DisableTranslation);
+ Ice::ClFlags::Flags.setDisableTranslation(DisableTranslation);
Translator.translateBuffer(BufferName, MungedInput.get());
Ctx.waitForWorkerThreads();
« no previous file with comments | « unittest/BitcodeMunge.h ('k') | unittest/IceParseInstsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698