mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
e5745c32fd
For consistency with normal instructions and clarity when reading IR, it's best to print the %0, %1, ... names of function arguments in definitions. Also modifies the parser to accept IR in that form for obvious reasons. llvm-svn: 367755
18 lines
488 B
LLVM
18 lines
488 B
LLVM
; RUN: opt -mtriple=i686-unknown-windows-msvc -S -x86-winehstate < %s | FileCheck %s
|
|
|
|
$f = comdat any
|
|
|
|
define void @f() comdat personality i32 (...)* @__CxxFrameHandler3 {
|
|
invoke void @g() to label %return unwind label %unwind
|
|
return:
|
|
ret void
|
|
unwind:
|
|
%pad = cleanuppad within none []
|
|
cleanupret from %pad unwind to caller
|
|
}
|
|
|
|
declare void @g()
|
|
declare i32 @__CxxFrameHandler3(...)
|
|
|
|
; CHECK: define internal i32 @"__ehhandler$f"(i8* %0, i8* %1, i8* %2, i8* %3){{ .+}} comdat($f) {
|