mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fixes to native backtrace.
This commit is contained in:
committed by
Christoffer Lerno
parent
dc0aa35522
commit
5e8816e6df
@@ -87,7 +87,7 @@ fn int main()
|
||||
@init.foo = internal unnamed_addr global ptr @"test.$global$lambda1", align 8
|
||||
@init.foo.2 = internal unnamed_addr global ptr @"test.$global$lambda2", align 8
|
||||
|
||||
; Function Attrs: nounwind
|
||||
|
||||
define void @test.Foo.test(ptr %0, i32 %1) #0 {
|
||||
entry:
|
||||
%2 = getelementptr inbounds %Foo, ptr %0, i32 0, i32 0
|
||||
@@ -96,7 +96,7 @@ entry:
|
||||
ret void
|
||||
}
|
||||
|
||||
; Function Attrs: nounwind
|
||||
|
||||
define void @test.FooTest.init(ptr %0) #0 {
|
||||
entry:
|
||||
%1 = getelementptr inbounds %FooTest, ptr %0, i32 0, i32 0
|
||||
@@ -124,7 +124,7 @@ if.exit: ; preds = %entry
|
||||
ret void
|
||||
}
|
||||
|
||||
; Function Attrs: nounwind
|
||||
|
||||
define internal void @"test.$global$lambda2"(ptr %0, i32 %1) #0 {
|
||||
entry:
|
||||
%z = alloca ptr, align 8
|
||||
|
||||
@@ -33,7 +33,7 @@ fn int main()
|
||||
@.str.11 = private unnamed_addr constant [4 x i8] c"int\00", align 1
|
||||
@.str.13 = private unnamed_addr constant [4 x i8] c"int\00", align 1
|
||||
|
||||
; Function Attrs: nounwind
|
||||
|
||||
define i32 @main() #0 {
|
||||
store ptr @"main$lambda1", ptr %x, align 8
|
||||
%0 = load ptr, ptr %x, align 8
|
||||
|
||||
Reference in New Issue
Block a user