mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-24 06:10:12 +00:00
Update use of llvm::CallingConv:X86_64_Win64 after LLVM commit r308208
llvm-svn: 308209
This commit is contained in:
parent
2f24e93481
commit
d1daa95e11
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user