summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2016-12-03 23:00:12 +0000
committerDan Gohman <dan433584@gmail.com>2016-12-03 23:00:12 +0000
commit66caac5735624f10a90921e43bb8c27eca58bee5 (patch)
treef8528f3eee049022347110bfcc204712695df366 /llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
parent9c89ba7fa7179c1ae70a1da2995d1246e95720b3 (diff)
downloadbcm5719-llvm-66caac5735624f10a90921e43bb8c27eca58bee5.tar.gz
bcm5719-llvm-66caac5735624f10a90921e43bb8c27eca58bee5.zip
[WebAssembly] Eliminate an ad-hoc command-line argument.
Use the target triple to determine whether to run the explicit-locals pass, rather than using a separate command-line argument. llvm-svn: 288602
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
index f0f74e7b5e8..b61bc0a0814 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
@@ -41,11 +41,6 @@ static cl::opt<bool> EnableEmSjLj(
cl::desc("WebAssembly Emscripten-style setjmp/longjmp handling"),
cl::init(false));
-static cl::opt<bool> ExplicitLocals(
- "wasm-explicit-locals",
- cl::desc("WebAssembly with explicit get_local/set_local"),
- cl::init(false));
-
extern "C" void LLVMInitializeWebAssemblyTarget() {
// Register the target.
RegisterTargetMachine<WebAssemblyTargetMachine> X(
@@ -262,8 +257,7 @@ void WebAssemblyPassConfig::addPreEmitPass() {
}
// Insert explicit get_local and set_local operators.
- if (ExplicitLocals)
- addPass(createWebAssemblyExplicitLocals());
+ addPass(createWebAssemblyExplicitLocals());
// Eliminate multiple-entry loops.
addPass(createWebAssemblyFixIrreducibleControlFlow());
OpenPOWER on IntegriCloud