Skip to content

Commit d56c5d7

Browse files
committed
remove -mllvm -experimental-wasm-enable-alt-sjlj
1 parent a79a4b6 commit d56c5d7

File tree

4 files changed

+0
-22
lines changed

4 files changed

+0
-22
lines changed

clang/lib/Driver/ToolChains/WebAssembly.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -386,20 +386,6 @@ void WebAssembly::addClangTargetOptions(const ArgList &DriverArgs,
386386
// Backend needs '-exception-model=wasm' to use Wasm EH instructions
387387
CC1Args.push_back("-exception-model=wasm");
388388
}
389-
390-
if (Opt.starts_with("-experimental-wasm-enable-alt-sjlj")) {
391-
// '-mllvm -experimental-wasm-enable-alt-sjlj' should be used with
392-
// '-mllvm -wasm-enable-sjlj'
393-
bool HasWasmEnableSjlj = false;
394-
for (const Arg *A : DriverArgs.filtered(options::OPT_mllvm)) {
395-
if (StringRef(A->getValue(0)) == "-wasm-enable-sjlj")
396-
HasWasmEnableSjlj = true;
397-
}
398-
if (!HasWasmEnableSjlj)
399-
getDriver().Diag(diag::err_drv_argument_only_allowed_with)
400-
<< "-mllvm -experimental-wasm-enable-alt-sjlj"
401-
<< "-mllvm -wasm-enable-sjlj";
402-
}
403389
}
404390
}
405391

llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTargetDesc.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@ cl::opt<bool>
5454
// setjmp/longjmp handling using wasm EH instrutions
5555
cl::opt<bool> WebAssembly::WasmEnableSjLj(
5656
"wasm-enable-sjlj", cl::desc("WebAssembly setjmp/longjmp handling"));
57-
cl::opt<bool> WebAssembly::WasmEnableAltSjLj(
58-
"experimental-wasm-enable-alt-sjlj",
59-
cl::desc("Use experimental alternate ABI for -wasm-enable-sjlj"));
6057

6158
static MCAsmInfo *createMCAsmInfo(const MCRegisterInfo & /*MRI*/,
6259
const Triple &TT,

llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTargetDesc.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ extern cl::opt<bool> WasmEnableEmEH; // asm.js-style EH
4444
extern cl::opt<bool> WasmEnableEmSjLj; // asm.js-style SjLJ
4545
extern cl::opt<bool> WasmEnableEH; // EH using Wasm EH instructions
4646
extern cl::opt<bool> WasmEnableSjLj; // SjLj using Wasm EH instructions
47-
extern cl::opt<bool> WasmEnableAltSjLj; // Alt ABI for WasmEnableSjLj
4847

4948
enum OperandType {
5049
/// Basic block label in a branch construct.

llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,6 @@ FunctionPass *WebAssemblyPassConfig::createTargetRegisterAllocator(bool) {
370370
return nullptr; // No reg alloc
371371
}
372372

373-
using WebAssembly::WasmEnableAltSjLj;
374373
using WebAssembly::WasmEnableEH;
375374
using WebAssembly::WasmEnableEmEH;
376375
using WebAssembly::WasmEnableEmSjLj;
@@ -406,9 +405,6 @@ static void basicCheckForEHAndSjLj(TargetMachine *TM) {
406405
report_fatal_error(
407406
"-exception-model=wasm only allowed with at least one of "
408407
"-wasm-enable-eh or -wasm-enable-sjlj");
409-
if (!WasmEnableSjLj && WasmEnableAltSjLj)
410-
report_fatal_error("-experimental-wasm-enable-alt-sjlj only allowed with "
411-
"-wasm-enable-sjlj");
412408

413409
// You can't enable two modes of EH at the same time
414410
if (WasmEnableEmEH && WasmEnableEH)

0 commit comments

Comments
 (0)