Fix AsmWriter's handling of SPIR calling conventions. Patch by Boaz Ouriel.
[oota-llvm.git] / lib / IR / AsmWriter.cpp
index bd0f3c69b7a17865f5cb010e19384e21cce1d99b..7215fc2a4c1af6e20f918bc1ec78f2142afa83e8 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;
   }
 }