From: Michael Kuperstein Date: Sun, 15 Dec 2013 10:01:20 +0000 (+0000) Subject: Fix AsmWriter's handling of SPIR calling conventions. Patch by Boaz Ouriel. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=ef94f7e5c13a0c2111b3540460da4cf2aaf4ee75 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 --- diff --git a/lib/IR/AsmWriter.cpp b/lib/IR/AsmWriter.cpp index bd0f3c69b7a..7215fc2a4c1 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; } }