1target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64" 2target triple = "armv7m-none-eabi" 3 4@"runtime.lookupPanic$string" = constant [18 x i8] c"index out of range" 5 6declare void @runtime.runtimePanic(i8*, i32) 7 8declare void @runtime._panic(i32, i8*) 9 10define void @runtime.lookupPanic() { 11 call void @llvm.trap() 12 call void @runtime.runtimePanic(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @"runtime.lookupPanic$string", i64 0, i64 0), i32 18) 13 ret void 14} 15 16define void @someFunc(i32 %typecode, i8* %value) { 17 call void @llvm.trap() 18 call void @runtime._panic(i32 %typecode, i8* %value) 19 unreachable 20} 21 22; Function Attrs: cold noreturn nounwind 23declare void @llvm.trap() #0 24 25attributes #0 = { cold noreturn nounwind } 26