Skip to content

Commit 6f8c434

Browse files
committed
[llvm][MC] Disable cfi-version test for Windows on Arm
Like Windows on x86-64, Windows on arm64 uses structured exception handling, so we don't emit .debug_frame. See: https://docs.microsoft.com/en-us/cpp/build/arm64-exception-handling?view=msvc-160 Reviewed By: ostannard Differential Revision: https://reviews.llvm.org/D107440
1 parent 13e145f commit 6f8c434

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

llvm/test/MC/ELF/cfi-version.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
; PR46647
77
; XFAIL: arm64-apple
88

9-
; .debug_frame is not emitted for targeting Windows x64.
9+
; .debug_frame is not emitted for targeting Windows x64 or arm64.
1010
; REQUIRES: debug_frame
1111
; REQUIRES: default_triple
1212

llvm/test/lit.cfg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,8 @@ def have_ld64_plugin_support():
370370
if 'hw.optional.fma: 1' in result:
371371
config.available_features.add('fma3')
372372

373-
# .debug_frame is not emitted for targeting Windows x64.
374-
if not re.match(r'^x86_64.*-(windows-gnu|windows-msvc)', config.target_triple):
373+
# .debug_frame is not emitted for targeting Windows x64 or arm64.
374+
if not re.match(r'^(x86_64|arm64).*-(windows-gnu|windows-msvc)', config.target_triple):
375375
config.available_features.add('debug_frame')
376376

377377
if config.have_libxar:

0 commit comments

Comments
 (0)