diff options
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/Target/X86/X86Subtarget.h | 1 | ||||
-rw-r--r-- | llvm/test/CodeGen/X86/swiftcc.ll | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86Subtarget.h b/llvm/lib/Target/X86/X86Subtarget.h index 61fa9252770..a8de6eaf1cc 100644 --- a/llvm/lib/Target/X86/X86Subtarget.h +++ b/llvm/lib/Target/X86/X86Subtarget.h @@ -614,6 +614,7 @@ public: // On Win64, all these conventions just use the default convention. case CallingConv::C: case CallingConv::Fast: + case CallingConv::Swift: case CallingConv::X86_FastCall: case CallingConv::X86_StdCall: case CallingConv::X86_ThisCall: diff --git a/llvm/test/CodeGen/X86/swiftcc.ll b/llvm/test/CodeGen/X86/swiftcc.ll new file mode 100644 index 00000000000..dc36ee247f1 --- /dev/null +++ b/llvm/test/CodeGen/X86/swiftcc.ll @@ -0,0 +1,11 @@ +; RUN: llc -mtriple x86_64-unknown-windows-msvc -filetype asm -o - %s | FileCheck %s + +define swiftcc void @f() { + %1 = alloca i8 + ret void +} + +; CHECK-LABEL: f +; CHECK: .seh_stackalloc 8 +; CHECK: .seh_endprologue + |