Skip to content

Commit 3edb98f

Browse files
committed
[CodeGen/DWARF] Introduce DWARF tag for SwiftTail and emit it in CodeGen.
swifttailcc is a new calling convention in LLVM introduced in https://reviews.llvm.org/D95443. We add a new DWARF tag to capture this in debuginfo. Differential Revision: https://reviews.llvm.org/D95704 [Note: This patch seems to have been forgotten about, landing it now with considerable delay] (cherry picked from commit 380f0fb) Conflicts: llvm/include/llvm/BinaryFormat/Dwarf.def WARNING. This patch was put up for LLVM review and then forgotten about. In the mean time the DW_CC constant was used by another LLVM extension. So this patch actually changes the debug info format. Thankfully, there don't seem to be any consumers depending on the information right now, so this should be benign.
1 parent 7d0518c commit 3edb98f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

llvm/include/llvm/BinaryFormat/Dwarf.def

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,10 @@ HANDLE_DW_CC(0xc8, LLVM_Swift)
10421042
HANDLE_DW_CC(0xc9, LLVM_PreserveMost)
10431043
HANDLE_DW_CC(0xca, LLVM_PreserveAll)
10441044
HANDLE_DW_CC(0xcb, LLVM_X86RegCall)
1045-
HANDLE_DW_CC(0xcc, LLVM_SwiftTail)
1045+
HANDLE_DW_CC(0xcc, LLVM_M68kRTD)
1046+
HANDLE_DW_CC(0xcd, LLVM_PreserveNone)
1047+
HANDLE_DW_CC(0xce, LLVM_RISCVVectorCall)
1048+
HANDLE_DW_CC(0xcf, LLVM_SwiftTail)
10461049
// From GCC source code (include/dwarf2.h): This DW_CC_ value is not currently
10471050
// generated by any toolchain. It is used internally to GDB to indicate OpenCL
10481051
// C functions that have been compiled with the IBM XL C for OpenCL compiler and

0 commit comments

Comments
 (0)