annotate test/CodeGen/WinEH/wineh-comdat.ll @ 128:c347d3398279 default tip

fix
author mir3636
date Wed, 06 Dec 2017 14:37:17 +0900
parents 803732b1fca8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
1 ; RUN: opt -mtriple=i686-unknown-windows-msvc -S -x86-winehstate < %s | FileCheck %s
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
3 $f = comdat any
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
4
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
5 define void @f() comdat personality i32 (...)* @__CxxFrameHandler3 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
6 invoke void @g() to label %return unwind label %unwind
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
7 return:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
8 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
9 unwind:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
10 %pad = cleanuppad within none []
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
11 cleanupret from %pad unwind to caller
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
12 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
13
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
14 declare void @g()
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
15 declare i32 @__CxxFrameHandler3(...)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
16
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
17 ; CHECK: define internal i32 @"__ehhandler$f"(i8*, i8*, i8*, i8*){{ .+}} comdat($f) {