File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -648,6 +648,7 @@ class LLVM_LIBRARY_VISIBILITY CygwinX86_32TargetInfo : public X86_32TargetInfo {
648
648
: X86_32TargetInfo(Triple, Opts) {
649
649
this ->WCharType = TargetInfo::UnsignedShort;
650
650
this ->WIntType = TargetInfo::UnsignedInt;
651
+ this ->UseMicrosoftManglingForC = true ;
651
652
DoubleAlign = LongLongAlign = 64 ;
652
653
resetDataLayout (" e-m:x-p:32:32-p270:32:32-p271:32:32-p272:64:64-i64:64-"
653
654
" i128:128-f80:32-n8:16:32-a:0:32-S32" ,
@@ -985,6 +986,7 @@ class LLVM_LIBRARY_VISIBILITY CygwinX86_64TargetInfo : public X86_64TargetInfo {
985
986
: X86_64TargetInfo(Triple, Opts) {
986
987
this ->WCharType = TargetInfo::UnsignedShort;
987
988
this ->WIntType = TargetInfo::UnsignedInt;
989
+ this ->UseMicrosoftManglingForC = true ;
988
990
}
989
991
990
992
void getTargetDefines (const LangOptions &Opts,
Original file line number Diff line number Diff line change 1
1
// RUN: %clang_cc1 -emit-llvm %s -o - -triple=i386-pc-win32 | FileCheck %s
2
- // RUN: %clang_cc1 -emit-llvm %s -o - -triple=i386-mingw32 | FileCheck %s
2
+ // RUN: %clang_cc1 -emit-llvm %s -o - -triple=i386-mingw32 | FileCheck %s
3
+ // RUN: %clang_cc1 -emit-llvm %s -o - -triple=i386-cygwin | FileCheck %s
3
4
// RUN: %clang_cc1 -emit-llvm %s -o - -triple=i386-pc-windows-msvc-elf | FileCheck %s --check-prefix=ELF32
4
5
// RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-pc-win32 | FileCheck %s --check-prefix=X64
5
- // RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-mingw32 | FileCheck %s --check-prefix=X64
6
+ // RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-mingw32 | FileCheck %s --check-prefix=X64
7
+ // RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-cygwin | FileCheck %s --check-prefix=X64
6
8
// RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-pc-windows-msvc-elf | FileCheck %s --check-prefix=ELF64
7
9
8
10
// CHECK: target datalayout = "e-m:x-{{.*}}"
Original file line number Diff line number Diff line change 4
4
// RUN: %clang_cc1 -emit-llvm %s -o - -triple=i386-mingw32 | \
5
5
// RUN: FileCheck --check-prefix=ITANIUM %s
6
6
7
+ // RUN: %clang_cc1 -emit-llvm %s -o - -triple=i386-cygwin | \
8
+ // RUN: FileCheck --check-prefix=ITANIUM %s
9
+
7
10
void __stdcall f1 (void ) {}
8
11
// WIN: define dso_local x86_stdcallcc void @"?f1@@YGXXZ"
9
12
// ITANIUM: define dso_local x86_stdcallcc void @"\01__Z2f1v@0"
You can’t perform that action at this time.
0 commit comments