diff --git a/kotstd/lib/arm/array_c.ll b/kotstd/lib/arm/array_c.ll index 4e01dd4193a..6fa6e43ebac 100644 --- a/kotstd/lib/arm/array_c.ll +++ b/kotstd/lib/arm/array_c.ll @@ -7,12 +7,12 @@ define weak i32 @malloc_array(i32 %x) #0 { %1 = alloca i32, align 4 store i32 %x, i32* %1, align 4 %2 = load i32* %1, align 4 - %3 = call i8* @malloc(i32 %2) #2 + %3 = call i8* @malloc_static(i32 %2) #2 %4 = ptrtoint i8* %3 to i32 ret i32 %4 } -declare i8* @malloc(i32) #1 +declare i8* @malloc_static(i32) #1 ; Function Attrs: nounwind define weak zeroext i8 @kotlinclib_get_byte(i32 %data, i32 %index) #0 { @@ -153,10 +153,3 @@ define weak void @kotlinclib_set_long(i32 %data, i32 %index, i32 %value) #0 { attributes #0 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" } attributes #1 = { "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" } attributes #2 = { nobuiltin } - -!llvm.module.flags = !{!0, !1} -!llvm.ident = !{!2} - -!0 = !{i32 1, !"wchar_size", i32 4} -!1 = !{i32 1, !"min_enum_size", i32 4} -!2 = !{!"Ubuntu clang version 3.6.2-3ubuntu2 (tags/RELEASE_362/final) (based on LLVM 3.6.2)"} diff --git a/kotstd/lib/arm/console_c.ll b/kotstd/lib/arm/console_c.ll index 0eb3e507444..a6c57dba96f 100644 --- a/kotstd/lib/arm/console_c.ll +++ b/kotstd/lib/arm/console_c.ll @@ -134,10 +134,3 @@ define weak void @kotlinclib_println() #0 { } attributes #0 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" } - -!llvm.module.flags = !{!0, !1} -!llvm.ident = !{!2} - -!0 = !{i32 1, !"wchar_size", i32 4} -!1 = !{i32 1, !"min_enum_size", i32 4} -!2 = !{!"Ubuntu clang version 3.6.2-3ubuntu2 (tags/RELEASE_362/final) (based on LLVM 3.6.2)"} diff --git a/kotstd/lib/arm/primitives_c.ll b/kotstd/lib/arm/primitives_c.ll index 5154049972d..e89f40726a8 100644 --- a/kotstd/lib/arm/primitives_c.ll +++ b/kotstd/lib/arm/primitives_c.ll @@ -418,9 +418,3 @@ define i32 @kotlinclib_byte_size() #0 { attributes #0 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" } -!llvm.module.flags = !{!0, !1} -!llvm.ident = !{!2} - -!0 = !{i32 1, !"wchar_size", i32 4} -!1 = !{i32 1, !"min_enum_size", i32 4} -!2 = !{!"Ubuntu clang version 3.6.2-3ubuntu2 (tags/RELEASE_362/final) (based on LLVM 3.6.2)"} diff --git a/translator/src/test/kotlin/tests/kotlin/enum_complex.kt b/translator/src/test/kotlin/tests/kotlin/enum_complex.kt index c75d4eaa13e..3754ffc5bb2 100644 --- a/translator/src/test/kotlin/tests/kotlin/enum_complex.kt +++ b/translator/src/test/kotlin/tests/kotlin/enum_complex.kt @@ -16,5 +16,5 @@ class Holder() { fun enum_complex_test1(): Int { val h = Holder() - return 0 + return Holder.nested.functor(0) }