diff options
author | Dan Gohman <dan433584@gmail.com> | 2016-12-03 23:00:12 +0000 |
---|---|---|
committer | Dan Gohman <dan433584@gmail.com> | 2016-12-03 23:00:12 +0000 |
commit | 66caac5735624f10a90921e43bb8c27eca58bee5 (patch) | |
tree | f8528f3eee049022347110bfcc204712695df366 /llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp | |
parent | 9c89ba7fa7179c1ae70a1da2995d1246e95720b3 (diff) | |
download | bcm5719-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.cpp | 8 |
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()); |