llvm.org GIT mirror llvm / ae58e02
[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 Martin Storsjo 1 year, 5 months ago
3 changed file(s) with 4 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
129129 CodePointerSize = 8;
130130
131131 CommentString = "//";
132 ExceptionsType = ExceptionHandling::DwarfCFI;
133 // The default is dwarf, but WinEH can be enabled optionally, which requires
134 // WinEHEncodingType to be set.
132 ExceptionsType = ExceptionHandling::WinEH;
135133 WinEHEncodingType = WinEH::EncodingType::Itanium;
136134 }
None ; RUN: llc -mtriple aarch64-windows-gnu -filetype=asm -o - %s | FileCheck %s
0 ; RUN: llc -mtriple aarch64-windows-gnu -exception-model=dwarf -filetype=asm -o - %s | FileCheck %s
11
22 define void @_Z1gv() personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
33 entry:
None ; RUN: llc < %s -exception-model=wineh -mtriple=aarch64-pc-mingw32 | FileCheck %s -check-prefix=WINEH
1 ; RUN: llc < %s -exception-model=wineh -mtriple=aarch64-pc-mingw32 -filetype=obj | llvm-readobj -S | FileCheck %s -check-prefix=WINEH-SECTIONS
0 ; RUN: llc < %s -mtriple=aarch64-pc-mingw32 | FileCheck %s -check-prefix=WINEH
1 ; RUN: llc < %s -mtriple=aarch64-pc-mingw32 -filetype=obj | llvm-readobj -S | FileCheck %s -check-prefix=WINEH-SECTIONS
22
33 ; Check emission of eh handler and handler data
44 declare i32 @_d_eh_personality(i32, i32, i64, i8*, i8*)