1 ; RUN: llc < %s -O1 -mtriple=x86_64-pc-win32 | FileCheck %s -check-prefix=ASM
2 ; RUN: llc < %s -O1 -mtriple=x86_64-pc-win32 -filetype=obj -o %t
3 ; RUN: llvm-readobj --unwind %t | FileCheck %s -check-prefix=READOBJ
7 define i32 @not_leaf(i32) uwtable {
12 ; ASM-LABEL: not_leaf:
15 ; READOBJ: RuntimeFunction {
16 ; READOBJ-NEXT: StartAddress: not_leaf
17 ; READOBJ-NEXT: EndAddress: not_leaf
20 define void @leaf_func(i32) uwtable {
22 tail call void @g(i32 42)
25 ; A Win64 "leaf" function gets no .seh directives in the asm.
26 ; ASM-LABEL: leaf_func:
29 ; and no unwind info in the object file.
30 ; READOBJ-NOT: leaf_func
33 define void @naked_func() naked {
34 call void asm sideeffect "ret", ""()
37 ; ASM-LABEL: naked_func: