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

Unified Diff: src/llvm2ice.cpp

Issue 902713002: Allow stubbing of called constant addresses using command line argument. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add TODO. Created 5 years, 10 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 | « src/PNaClTranslator.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/llvm2ice.cpp
diff --git a/src/llvm2ice.cpp b/src/llvm2ice.cpp
index a98c75d327cf75af67c07711e3c13237f7ec30f1..2f3176500cfd64dd2b98c24e86e4ad00a22ac363 100644
--- a/src/llvm2ice.cpp
+++ b/src/llvm2ice.cpp
@@ -172,6 +172,12 @@ static cl::opt<bool> AllowErrorRecovery(
cl::desc("Allow error recovery when reading PNaCl bitcode."),
cl::init(false));
+// TODO(kschimpf) Remove once the emitter handles these cases.
+static cl::opt<bool>
+ StubConstantCalls("stub-const-calls",
+ cl::desc("Stub indirect calls to constants."),
+ cl::init(false));
+
static cl::opt<bool> LLVMVerboseErrors(
"verbose-llvm-parse-errors",
cl::desc("Print out more descriptive PNaCl bitcode parse errors when "
@@ -313,6 +319,7 @@ int main(int argc, char **argv) {
Flags.TranslateOnly = TranslateOnly;
Flags.DisableIRGeneration = DisableIRGeneration;
Flags.AllowErrorRecovery = AllowErrorRecovery;
+ Flags.StubConstantCalls = StubConstantCalls;
// Force -build-on-read=0 for .ll files.
const std::string LLSuffix = ".ll";
« no previous file with comments | « src/PNaClTranslator.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698