Skip to content

Commit ae58e02

Browse files
committed
[AArch64] Default to SEH exception handling on MinGW
The SEH implementation is pretty mature at this point. Differential Revision: https://reviews.llvm.org/D61590 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360080 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent fe9414d commit ae58e02

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

lib/Target/AArch64/MCTargetDesc/AArch64MCAsmInfo.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,6 @@ AArch64MCAsmInfoGNUCOFF::AArch64MCAsmInfoGNUCOFF() {
130130
CodePointerSize = 8;
131131

132132
CommentString = "//";
133-
ExceptionsType = ExceptionHandling::DwarfCFI;
134-
// The default is dwarf, but WinEH can be enabled optionally, which requires
135-
// WinEHEncodingType to be set.
133+
ExceptionsType = ExceptionHandling::WinEH;
136134
WinEHEncodingType = WinEH::EncodingType::Itanium;
137135
}

test/CodeGen/AArch64/dwarf-cfi.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc -mtriple aarch64-windows-gnu -filetype=asm -o - %s | FileCheck %s
1+
; RUN: llc -mtriple aarch64-windows-gnu -exception-model=dwarf -filetype=asm -o - %s | FileCheck %s
22

33
define void @_Z1gv() personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
44
entry:

test/CodeGen/AArch64/wineh-mingw.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
; RUN: llc < %s -exception-model=wineh -mtriple=aarch64-pc-mingw32 | FileCheck %s -check-prefix=WINEH
2-
; RUN: llc < %s -exception-model=wineh -mtriple=aarch64-pc-mingw32 -filetype=obj | llvm-readobj -S | FileCheck %s -check-prefix=WINEH-SECTIONS
1+
; RUN: llc < %s -mtriple=aarch64-pc-mingw32 | FileCheck %s -check-prefix=WINEH
2+
; RUN: llc < %s -mtriple=aarch64-pc-mingw32 -filetype=obj | llvm-readobj -S | FileCheck %s -check-prefix=WINEH-SECTIONS
33

44
; Check emission of eh handler and handler data
55
declare i32 @_d_eh_personality(i32, i32, i64, i8*, i8*)

0 commit comments

Comments
 (0)