OSDN Git Service

CodeGen: support SwiftError SwiftCC on Windows x64
authorSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 20 Sep 2017 18:40:59 +0000 (18:40 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 20 Sep 2017 18:40:59 +0000 (18:40 +0000)
commita689afa09de3617bf7d28bdc659bd1f06e72febb
treef504534aac88d27de8615882cc03622d336ff736
parent96bd9232ef8f135742acb933e7069bcf69c52cef
CodeGen: support SwiftError SwiftCC on Windows x64

Add support for passing SwiftError through a register on the Windows x64
calling convention.  This allows the use of swifterror attributes on
parameters which is used by the swift front end for the `Error`
parameter.  This partially enables building the swift standard library
for Windows x86_64.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313791 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
lib/Target/X86/X86CallingConv.td
test/CodeGen/X86/swift-error.ll [new file with mode: 0644]