File tree Expand file tree Collapse file tree 2 files changed +3
-17
lines changed Expand file tree Collapse file tree 2 files changed +3
-17
lines changed Original file line number Diff line number Diff line change @@ -282,12 +282,6 @@ void WebAssembly::addClangTargetOptions(const ArgList &DriverArgs,
282
282
getDriver ().Diag (diag::err_drv_argument_not_allowed_with)
283
283
<< " -fwasm-exceptions"
284
284
<< " -mno-exception-handling" ;
285
- // '-fwasm-exceptions' is not compatible with '-mno-reference-types'
286
- if (DriverArgs.hasFlag (options::OPT_mno_reference_types,
287
- options::OPT_mexception_handing, false ))
288
- getDriver ().Diag (diag::err_drv_argument_not_allowed_with)
289
- << " -fwasm-exceptions"
290
- << " -mno-reference-types" ;
291
285
// '-fwasm-exceptions' is not compatible with
292
286
// '-mllvm -enable-emscripten-cxx-exceptions'
293
287
for (const Arg *A : DriverArgs.filtered (options::OPT_mllvm)) {
@@ -296,11 +290,9 @@ void WebAssembly::addClangTargetOptions(const ArgList &DriverArgs,
296
290
<< " -fwasm-exceptions"
297
291
<< " -mllvm -enable-emscripten-cxx-exceptions" ;
298
292
}
299
- // '-fwasm-exceptions' implies exception-handling and reference-types
293
+ // '-fwasm-exceptions' implies exception-handling feature
300
294
CC1Args.push_back (" -target-feature" );
301
295
CC1Args.push_back (" +exception-handling" );
302
- CC1Args.push_back (" -target-feature" );
303
- CC1Args.push_back (" +reference-types" );
304
296
}
305
297
}
306
298
Original file line number Diff line number Diff line change 79
79
// RUN: | FileCheck -check-prefix=PTHREAD_NO_SIGN_EXT %s
80
80
// PTHREAD_NO_SIGN_EXT: invalid argument '-pthread' not allowed with '-mno-sign-ext'
81
81
82
- // '-fwasm-exceptions' sets +exception-handling and +reference-types
82
+ // '-fwasm-exceptions' sets +exception-handling
83
83
// RUN: %clang -### -no-canonical-prefixes -target wasm32-unknown-unknown \
84
84
// RUN: --sysroot=/foo %s -fwasm-exceptions 2>&1 \
85
85
// RUN: | FileCheck -check-prefix=WASM_EXCEPTIONS %s
86
- // WASM_EXCEPTIONS: clang{{.*}}" "-cc1" {{.*}} "-target-feature" "+exception-handling" "-target-feature" "+reference-types"
86
+ // WASM_EXCEPTIONS: clang{{.*}}" "-cc1" {{.*}} "-target-feature" "+exception-handling"
87
87
88
88
// '-fwasm-exceptions' not allowed with '-mno-exception-handling'
89
89
// RUN: %clang -### -no-canonical-prefixes -target wasm32-unknown-unknown \
90
90
// RUN: --sysroot=/foo %s -fwasm-exceptions -mno-exception-handling 2>&1 \
91
91
// RUN: | FileCheck -check-prefix=WASM_EXCEPTIONS_NO_EH %s
92
92
// WASM_EXCEPTIONS_NO_EH: invalid argument '-fwasm-exceptions' not allowed with '-mno-exception-handling'
93
93
94
- // '-fwasm-exceptions' not allowed with '-mno-reference-types'
95
- // RUN: %clang -### -no-canonical-prefixes -target wasm32-unknown-unknown \
96
- // RUN: --sysroot=/foo %s -fwasm-exceptions -mno-reference-types 2>&1 \
97
- // RUN: | FileCheck -check-prefix=WASM_EXCEPTIONS_NO_REFTYPES %s
98
- // WASM_EXCEPTIONS_NO_REFTYPES: invalid argument '-fwasm-exceptions' not allowed with '-mno-reference-types'
99
-
100
94
// '-fwasm-exceptions' not allowed with
101
95
// '-mllvm -enable-emscripten-cxx-exceptions'
102
96
// RUN: %clang -### -no-canonical-prefixes -target wasm32-unknown-unknown \
You can’t perform that action at this time.
0 commit comments