OSDN Git Service

Fix AsmWriter's handling of SPIR calling conventions. Patch by Boaz Ouriel.
authorMichael Kuperstein <michael.m.kuperstein@intel.com>
Sun, 15 Dec 2013 10:01:20 +0000 (10:01 +0000)
committerMichael Kuperstein <michael.m.kuperstein@intel.com>
Sun, 15 Dec 2013 10:01:20 +0000 (10:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197335 91177308-0d34-0410-b5e6-96231b3b80d8

lib/IR/AsmWriter.cpp

index bd0f3c6..7215fc2 100644 (file)
@@ -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;
   }
 }