[clang] [llvm] [clang][Mach-O] Add a flag to force UNWIND_*_MODE_DWARF compact unwind info (PR #204005)

Saleem Abdulrasool via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 18 07:57:40 PDT 2026


================
@@ -1,11 +1,22 @@
 // REQUIRES: x86-registered-target
 
 // RUN: rm -rf %t; mkdir %t
+
 // RUN: %clang -target x86_64-apple-macos11.0 -c %s -o %t/x86_64.o -femit-compact-unwind-non-canonical
-// RUN: %clang -target x86_64-apple-macos11.0 -femit-dwarf-unwind=no-compact-unwind -femit-compact-unwind-non-canonical -c %s -o %t/x86_64-no-dwarf.o
 // RUN: llvm-objdump --macho --dwarf=frames %t/x86_64.o | FileCheck %s --check-prefix=WITH-FDE
+
+// RUN: %clang -target x86_64-apple-macos11.0 -femit-dwarf-unwind=no-compact-unwind -femit-compact-unwind-non-canonical -c %s -o %t/x86_64-no-dwarf.o
----------------
compnerd wrote:

Eh? It's used heavily by swift at least for windows c/c++ interop. Why is then option deprecated? It's been a supported spelling for ages.

https://github.com/llvm/llvm-project/pull/204005


More information about the cfe-commits mailing list