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

Unified Diff: src/IceClFlags.cpp

Issue 1506653002: Subzero: Add Non-SFI support for x86-32. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fill in part of the lit test Created 5 years 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
Index: src/IceClFlags.cpp
diff --git a/src/IceClFlags.cpp b/src/IceClFlags.cpp
index 56b0585503b07d8b7610e70933b7c4e79d5197ae..66b8702bdbd324f2d274b1e099a120ef66665eaf 100644
--- a/src/IceClFlags.cpp
+++ b/src/IceClFlags.cpp
@@ -220,6 +220,8 @@ cl::opt<std::string>
TranslateOnly("translate-only",
cl::desc("Translate only the given function"), cl::init(""));
+cl::opt<bool> UseNonsfi("nonsfi", cl::desc("Enable Non-SFI mode"));
+
cl::opt<bool> UseSandboxing("sandbox", cl::desc("Use sandboxing"));
cl::opt<std::string> VerboseFocusOn(
@@ -406,6 +408,7 @@ void ClFlags::resetClFlags(ClFlags &OutFlags) {
OutFlags.SkipUnimplemented = false;
OutFlags.SubzeroTimingEnabled = false;
OutFlags.TimeEachFunction = false;
+ OutFlags.UseNonsfi = false;
OutFlags.UseSandboxing = false;
// Enum and integer fields.
OutFlags.Opt = Opt_m1;
@@ -482,6 +485,7 @@ void ClFlags::getParsedClFlags(ClFlags &OutFlags) {
OutFlags.setTimeEachFunction(::TimeEachFunction);
OutFlags.setTimingFocusOn(::TimingFocusOn);
OutFlags.setTranslateOnly(::TranslateOnly);
+ OutFlags.setUseNonsfi(::UseNonsfi);
OutFlags.setUseSandboxing(::UseSandboxing);
OutFlags.setVerboseFocusOn(::VerboseFocusOn);
OutFlags.setOutFileType(::OutFileType);

Powered by Google App Engine
This is Rietveld 408576698