diff options
author | Michael Kuperstein <michael.m.kuperstein@intel.com> | 2013-12-15 10:01:20 +0000 |
---|---|---|
committer | Michael Kuperstein <michael.m.kuperstein@intel.com> | 2013-12-15 10:01:20 +0000 |
commit | ef94f7e5c13a0c2111b3540460da4cf2aaf4ee75 (patch) | |
tree | c4d27de12a770e11e34d190b9c80294cd77cb50a /lib/IR/AsmWriter.cpp | |
parent | 7ad409a3e93c6237a89f956aa47b4a4f50529795 (diff) | |
download | llvm-ef94f7e5c13a0c2111b3540460da4cf2aaf4ee75.tar.gz llvm-ef94f7e5c13a0c2111b3540460da4cf2aaf4ee75.tar.bz2 llvm-ef94f7e5c13a0c2111b3540460da4cf2aaf4ee75.tar.xz |
Fix AsmWriter's handling of SPIR calling conventions. Patch by Boaz Ouriel.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197335 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/AsmWriter.cpp')
-rw-r--r-- | lib/IR/AsmWriter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/IR/AsmWriter.cpp b/lib/IR/AsmWriter.cpp index bd0f3c69b7..7215fc2a4c 100644 --- a/lib/IR/AsmWriter.cpp +++ b/lib/IR/AsmWriter.cpp @@ -88,6 +88,8 @@ static void PrintCallingConv(unsigned cc, raw_ostream &Out) { case CallingConv::PTX_Device: Out << "ptx_device"; break; case CallingConv::X86_64_SysV: Out << "x86_64_sysvcc"; break; case CallingConv::X86_64_Win64: Out << "x86_64_win64cc"; break; + case CallingConv::SPIR_FUNC: Out << "spir_func"; break; + case CallingConv::SPIR_KERNEL: Out << "spir_kernel"; break; } } |