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 | e31b486cddf7fa069f56882319400c5003425095 (patch) | |
| tree | de33ee389fc1fdc7b92c34b34b7fa65b47aeb431 /llvm/lib | |
| parent | 7466979f2044909959843904883514bbe2e039ca (diff) | |
| download | bcm5719-llvm-e31b486cddf7fa069f56882319400c5003425095.tar.gz bcm5719-llvm-e31b486cddf7fa069f56882319400c5003425095.zip  | |
Fix AsmWriter's handling of SPIR calling conventions. Patch by Boaz Ouriel.
llvm-svn: 197335
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/IR/AsmWriter.cpp | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp index bd0f3c69b7a..7215fc2a4c1 100644 --- a/llvm/lib/IR/AsmWriter.cpp +++ b/llvm/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;    }  }  | 

