diff options
| author | Justin Holewinski <justin.holewinski@gmail.com> | 2011-03-07 14:32:30 +0000 |
|---|---|---|
| committer | Justin Holewinski <justin.holewinski@gmail.com> | 2011-03-07 14:32:30 +0000 |
| commit | 0cfa737f27dda7418aa4b013baecaa3eb6f067e7 (patch) | |
| tree | 3bdf53c4ebe2e191c60e459a8ce7e07aae5f988d /llvm/lib/VMCore | |
| parent | 2769c6e0dcd45276cf4e49cf4ecb83fe4b32fd9e (diff) | |
| download | bcm5719-llvm-0cfa737f27dda7418aa4b013baecaa3eb6f067e7.tar.gz bcm5719-llvm-0cfa737f27dda7418aa4b013baecaa3eb6f067e7.zip | |
ptx: Fix calling convention printing in AsmWriter.cpp
This allows LLVM IR using ptx_kernel or ptx_device calling
conventions to be properly printed when emitted in text form.
llvm-svn: 127157
Diffstat (limited to 'llvm/lib/VMCore')
| -rw-r--r-- | llvm/lib/VMCore/AsmWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp index ff6084d8a8b..ffd367a7ada 100644 --- a/llvm/lib/VMCore/AsmWriter.cpp +++ b/llvm/lib/VMCore/AsmWriter.cpp @@ -1584,8 +1584,8 @@ void AssemblyWriter::printFunction(const Function *F) { case CallingConv::ARM_AAPCS: Out << "arm_aapcscc "; break; case CallingConv::ARM_AAPCS_VFP:Out << "arm_aapcs_vfpcc "; break; case CallingConv::MSP430_INTR: Out << "msp430_intrcc "; break; - case CallingConv::PTX_Kernel: Out << "ptx_kernel"; break; - case CallingConv::PTX_Device: Out << "ptx_device"; break; + case CallingConv::PTX_Kernel: Out << "ptx_kernel "; break; + case CallingConv::PTX_Device: Out << "ptx_device "; break; default: Out << "cc" << F->getCallingConv() << " "; break; } |

