move personality funcs to funcs, per new llvm ir rules
This commit is contained in:
Родитель
60031eaeba
Коммит
4129850af0
|
@ -27,5 +27,4 @@ label999: ; preds = %555
|
|||
}
|
||||
|
||||
declare i32 @printf(i8*)
|
||||
declare i32 @__gxx_personality_v0(...)
|
||||
|
||||
|
|
|
@ -8222,7 +8222,7 @@ declare i32 @sysconf(i32) #5
|
|||
|
||||
declare i32 @time(i32*) #5
|
||||
|
||||
define weak i8* @_Znwj(i32 %size) #5 {
|
||||
define weak i8* @_Znwj(i32 %size) #5 personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
|
||||
entry:
|
||||
%cmp = icmp eq i32 %size, 0
|
||||
%.size = select i1 %cmp, i32 1, i32 %size
|
||||
|
@ -8244,12 +8244,12 @@ if.then3: ; preds = %while.body
|
|||
to label %invoke.cont unwind label %lpad.loopexit
|
||||
|
||||
lpad.loopexit: ; preds = %if.then3
|
||||
%lpad.loopexit4 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
|
||||
%lpad.loopexit4 = landingpad { i8*, i32 }
|
||||
filter [1 x i8*] [i8* bitcast ({ i8*, i8*, i8* }* @_ZTISt9bad_alloc to i8*)]
|
||||
br label %lpad
|
||||
|
||||
lpad.nonloopexit: ; preds = %if.else
|
||||
%lpad.nonloopexit5 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
|
||||
%lpad.nonloopexit5 = landingpad { i8*, i32 }
|
||||
filter [1 x i8*] [i8* bitcast ({ i8*, i8*, i8* }* @_ZTISt9bad_alloc to i8*)]
|
||||
br label %lpad
|
||||
|
||||
|
@ -8298,13 +8298,13 @@ declare void @__cxa_throw(i8*, i8*, i8*)
|
|||
declare void @__cxa_call_unexpected(i8*)
|
||||
|
||||
; Function Attrs: nounwind
|
||||
define weak noalias i8* @_ZnwjRKSt9nothrow_t(i32 %size, %"struct.std::nothrow_t"*) #0 {
|
||||
define weak noalias i8* @_ZnwjRKSt9nothrow_t(i32 %size, %"struct.std::nothrow_t"*) #0 personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
|
||||
entry:
|
||||
%call = invoke noalias i8* @_Znwj(i32 %size)
|
||||
to label %try.cont unwind label %lpad
|
||||
|
||||
lpad: ; preds = %entry
|
||||
%1 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
|
||||
%1 = landingpad { i8*, i32 }
|
||||
catch i8* null
|
||||
%2 = extractvalue { i8*, i32 } %1, 0
|
||||
%3 = tail call i8* @__cxa_begin_catch(i8* %2) #1
|
||||
|
@ -8316,7 +8316,7 @@ try.cont: ; preds = %lpad, %entry
|
|||
ret i8* %p.0
|
||||
|
||||
lpad1: ; preds = %lpad
|
||||
%4 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
|
||||
%4 = landingpad { i8*, i32 }
|
||||
filter [0 x i8*] zeroinitializer
|
||||
%5 = extractvalue { i8*, i32 } %4, 0
|
||||
tail call void @__cxa_call_unexpected(i8* %5) #6
|
||||
|
@ -8327,7 +8327,7 @@ declare i8* @__cxa_begin_catch(i8*)
|
|||
|
||||
declare void @__cxa_end_catch()
|
||||
|
||||
define weak noalias i8* @_Znaj(i32 %size) #5 {
|
||||
define weak noalias i8* @_Znaj(i32 %size) #5 personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
|
||||
entry:
|
||||
%call = invoke noalias i8* @_Znwj(i32 %size)
|
||||
to label %invoke.cont unwind label %lpad
|
||||
|
@ -8336,7 +8336,7 @@ invoke.cont: ; preds = %entry
|
|||
ret i8* %call
|
||||
|
||||
lpad: ; preds = %entry
|
||||
%0 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
|
||||
%0 = landingpad { i8*, i32 }
|
||||
filter [1 x i8*] [i8* bitcast ({ i8*, i8*, i8* }* @_ZTISt9bad_alloc to i8*)]
|
||||
%1 = extractvalue { i8*, i32 } %0, 1
|
||||
%ehspec.fails = icmp slt i32 %1, 0
|
||||
|
@ -8352,13 +8352,13 @@ eh.resume: ; preds = %lpad
|
|||
}
|
||||
|
||||
; Function Attrs: nounwind
|
||||
define weak noalias i8* @_ZnajRKSt9nothrow_t(i32 %size, %"struct.std::nothrow_t"*) #0 {
|
||||
define weak noalias i8* @_ZnajRKSt9nothrow_t(i32 %size, %"struct.std::nothrow_t"*) #0 personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
|
||||
entry:
|
||||
%call = invoke noalias i8* @_Znaj(i32 %size)
|
||||
to label %try.cont unwind label %lpad
|
||||
|
||||
lpad: ; preds = %entry
|
||||
%1 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
|
||||
%1 = landingpad { i8*, i32 }
|
||||
catch i8* null
|
||||
%2 = extractvalue { i8*, i32 } %1, 0
|
||||
%3 = tail call i8* @__cxa_begin_catch(i8* %2) #1
|
||||
|
@ -8370,7 +8370,7 @@ try.cont: ; preds = %lpad, %entry
|
|||
ret i8* %p.0
|
||||
|
||||
lpad1: ; preds = %lpad
|
||||
%4 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
|
||||
%4 = landingpad { i8*, i32 }
|
||||
filter [0 x i8*] zeroinitializer
|
||||
%5 = extractvalue { i8*, i32 } %4, 0
|
||||
tail call void @__cxa_call_unexpected(i8* %5) #6
|
||||
|
|
|
@ -8,7 +8,7 @@ target triple = "asmjs-unknown-emscripten"
|
|||
|
||||
declare void @_Z4chak5point(%struct.point* byval align 1) #0
|
||||
|
||||
define i32 @main(i32 %argc, i8** %argv) #0 {
|
||||
define i32 @main(i32 %argc, i8** %argv) #0 personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
|
||||
%1 = alloca i32, align 4
|
||||
%2 = alloca i32, align 4
|
||||
%3 = alloca i8**, align 4
|
||||
|
@ -64,7 +64,7 @@ define i32 @main(i32 %argc, i8** %argv) #0 {
|
|||
br label %44
|
||||
|
||||
; <label>:31 ; preds = %23, %0
|
||||
%32 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
|
||||
%32 = landingpad { i8*, i32 }
|
||||
catch i8* bitcast ({ i8*, i8* }* @_ZTIi to i8*)
|
||||
%33 = extractvalue { i8*, i32 } %32, 0
|
||||
store i8* %33, i8** %5
|
||||
|
|
|
@ -10,7 +10,7 @@ target triple = "asmjs-unknown-emscripten"
|
|||
@.str = private unnamed_addr constant [14 x i8] c"hello, world!\00", align 1 ; [#uses=1]
|
||||
|
||||
; [#uses=0]
|
||||
define i32 @main(i32 %p) {
|
||||
define i32 @main(i32 %p) personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
|
||||
entry:
|
||||
%retval = alloca i32 ; [#uses=2]
|
||||
%0 = alloca i32 ; [#uses=2]
|
||||
|
@ -31,7 +31,7 @@ invcont33:
|
|||
ret i32 %retval1
|
||||
|
||||
lpad106:
|
||||
%Z = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
|
||||
%Z = landingpad { i8*, i32 }
|
||||
cleanup
|
||||
ret i32 %retval1
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ target triple = "asmjs-unknown-emscripten"
|
|||
@.str = private unnamed_addr constant [14 x i8] c"hello, world!\00", align 1 ; [#uses=1]
|
||||
|
||||
; [#uses=0]
|
||||
define i32 @main() {
|
||||
define i32 @main() personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
|
||||
entry:
|
||||
%retval = alloca i32 ; [#uses=2]
|
||||
%0 = alloca i32 ; [#uses=2]
|
||||
|
@ -31,7 +31,7 @@ invcont33:
|
|||
ret i32 %retval1
|
||||
|
||||
lpad106:
|
||||
%Z = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
|
||||
%Z = landingpad { i8*, i32 }
|
||||
cleanup
|
||||
ret i32 %retval1
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ define i64 @retter(i64 %x) {
|
|||
ret i64 7017280452245743464
|
||||
}
|
||||
|
||||
define i32 @main() {
|
||||
define i32 @main() personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
|
||||
entry:
|
||||
%buffer = alloca i8, i32 1000, align 4
|
||||
%bundled = bitcast i8* %buffer to i128*
|
||||
|
@ -165,7 +165,7 @@ a100:
|
|||
br label %done
|
||||
|
||||
a111:
|
||||
%aaaa79 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
|
||||
%aaaa79 = landingpad { i8*, i32 }
|
||||
cleanup
|
||||
br label %done
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ define i64 @retter(i64 %x) {
|
|||
ret i64 7017280452245743464
|
||||
}
|
||||
|
||||
define i32 @main() {
|
||||
define i32 @main() personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
|
||||
entry:
|
||||
%buffer = alloca i8, i32 1000, align 4
|
||||
%bundled = bitcast i8* %buffer to i104*
|
||||
|
@ -178,7 +178,7 @@ a100:
|
|||
br label %done
|
||||
|
||||
a111:
|
||||
%aaaa79 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
|
||||
%aaaa79 = landingpad { i8*, i32 }
|
||||
cleanup
|
||||
br label %done
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ target triple = "asmjs-unknown-emscripten"
|
|||
@.str = private unnamed_addr constant [13 x i8] c"hello world\0A\00", align 1
|
||||
@.str1 = private unnamed_addr constant [6 x i8] c"more\0A\00", align 1
|
||||
|
||||
define i32 @main() {
|
||||
define i32 @main() personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
|
||||
%retval = alloca i32, align 4
|
||||
store i32 0, i32* %retval
|
||||
%call = invoke i32 @setjmp(i16* getelementptr inbounds ([20 x i16], [20 x i16]* @_ZL3buf, i32 0, i32 0)) returns_twice
|
||||
|
@ -22,7 +22,7 @@ if.else: ; preds = %entry
|
|||
if.end: ; preds = %if.else, %if.then
|
||||
ret i32 0
|
||||
awful:
|
||||
%Z = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
|
||||
%Z = landingpad { i8*, i32 }
|
||||
cleanup
|
||||
ret i32 1
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ target triple = "asmjs-unknown-emscripten"
|
|||
@.str1 = private unnamed_addr constant [6 x i8] c"more\0A\00", align 1
|
||||
@.str2 = private unnamed_addr constant [6 x i8] c"fair\0A\00", align 1
|
||||
|
||||
define i32 @main() {
|
||||
define i32 @main() personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
|
||||
entry:
|
||||
%retval = alloca i32, align 4
|
||||
store i32 0, i32* %retval
|
||||
|
@ -35,7 +35,7 @@ if.end: ; preds = %if.else, %if.then
|
|||
ret i32 0
|
||||
|
||||
awful:
|
||||
%Z = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
|
||||
%Z = landingpad { i8*, i32 }
|
||||
cleanup
|
||||
ret i32 1
|
||||
}
|
||||
|
|
|
@ -103,7 +103,7 @@ define internal i32 @_ZNK4test9Processor6resultEv(%"class.test::Processor"* noca
|
|||
ret i32 %2
|
||||
}
|
||||
|
||||
define i32 @runProcess() {
|
||||
define i32 @runProcess() personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
|
||||
%processor = alloca %"class.test::Processor", align 4
|
||||
call void @_ZN4test9ProcessorC1Ev(%"class.test::Processor"* %processor)
|
||||
%1 = invoke zeroext i1 @_ZN4test9Processor3runEv(%"class.test::Processor"* %processor)
|
||||
|
@ -118,7 +118,7 @@ define i32 @runProcess() {
|
|||
ret i32 %3
|
||||
|
||||
; <label>:5 ; preds = %2, %0
|
||||
%6 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
|
||||
%6 = landingpad { i8*, i32 }
|
||||
cleanup
|
||||
invoke void @_ZN4test9ProcessorD1Ev(%"class.test::Processor"* %processor)
|
||||
to label %7 unwind label %8
|
||||
|
@ -127,7 +127,7 @@ define i32 @runProcess() {
|
|||
resume { i8*, i32 } %6
|
||||
|
||||
; <label>:8 ; preds = %5
|
||||
%9 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
|
||||
%9 = landingpad { i8*, i32 }
|
||||
catch i8* null
|
||||
call void @_ZSt9terminatev() noreturn nounwind
|
||||
unreachable
|
||||
|
|
Загрузка…
Ссылка в новой задаче