diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp index cee656a62fe7..bcd95b563350 100644 --- a/clang/lib/CodeGen/CGCall.cpp +++ b/clang/lib/CodeGen/CGCall.cpp @@ -50,7 +50,7 @@ unsigned CodeGenTypes::ClangCallConvToLLVMCallConv(CallingConv CC) { case CC_X86FastCall: return llvm::CallingConv::X86_FastCall; case CC_X86RegCall: return llvm::CallingConv::X86_RegCall; case CC_X86ThisCall: return llvm::CallingConv::X86_ThisCall; - case CC_X86_64Win64: return llvm::CallingConv::X86_64_Win64; + case CC_X86_64Win64: return llvm::CallingConv::Win64; case CC_X86_64SysV: return llvm::CallingConv::X86_64_SysV; case CC_AAPCS: return llvm::CallingConv::ARM_AAPCS; case CC_AAPCS_VFP: return llvm::CallingConv::ARM_AAPCS_VFP; diff --git a/clang/test/CodeGen/ms_abi.c b/clang/test/CodeGen/ms_abi.c index 97f66b29c517..407087e40916 100644 --- a/clang/test/CodeGen/ms_abi.c +++ b/clang/test/CodeGen/ms_abi.c @@ -15,20 +15,20 @@ void f3(void) { // FREEBSD-LABEL: define void @f3() // WIN64-LABEL: define void @f3() f1(); - // FREEBSD: call x86_64_win64cc void @f1() + // FREEBSD: call win64cc void @f1() // WIN64: call void @f1() f2(); // FREEBSD: call void @f2() // WIN64: call x86_64_sysvcc void @f2() } -// FREEBSD: declare x86_64_win64cc void @f1() +// FREEBSD: declare win64cc void @f1() // FREEBSD: declare void @f2() // WIN64: declare void @f1() // WIN64: declare x86_64_sysvcc void @f2() // Win64 ABI varargs void __attribute__((ms_abi)) f4(int a, ...) { - // FREEBSD-LABEL: define x86_64_win64cc void @f4 + // FREEBSD-LABEL: define win64cc void @f4 // WIN64-LABEL: define void @f4 __builtin_ms_va_list ap; __builtin_ms_va_start(ap, a); diff --git a/clang/test/CodeGenObjC/attr-callconv.m b/clang/test/CodeGenObjC/attr-callconv.m index b0a41f74381d..8cf8d2bd71f7 100644 --- a/clang/test/CodeGenObjC/attr-callconv.m +++ b/clang/test/CodeGenObjC/attr-callconv.m @@ -9,5 +9,5 @@ // CHECK: define{{.*}}x86_stdcallcc{{.*}}Test test - (void)test2 __attribute__((ms_abi)) {} - // CHECK: define{{.*}}x86_64_win64cc{{.*}}Test test2 + // CHECK: define{{.*}}win64cc{{.*}}Test test2 @end