Stefan Gränitz b7d5b0d0ee
[Orc][examples] Revisit advanced LLJIT examples and tests (#76236)
Some maintenance on implementation and tests:
* Drop manual TargetMachineBuilder setup
* Drop addDebugSupport() in favor of Orc's enableDebuggerSupport()
* Check that debug support plugins append jit_code_entry
* Update and reduce sample input
2024-01-03 09:51:18 +01:00

17 lines
401 B
LLVM

define i32 @sub1(i32 %0) {
%2 = add i32 %0, -1
ret i32 %2
}
define i32 @main(i32 %0) {
%2 = call i32 @sub1(i32 %0)
ret i32 %2
}
!llvm.module.flags = !{!0}
!llvm.dbg.cu = !{!1}
!0 = !{i32 2, !"Debug Info Version", i32 3}
!1 = distinct !DICompileUnit(language: DW_LANG_C99, file: !2, producer: "clang 18.0.0git", emissionKind: FullDebug)
!2 = !DIFile(filename: "argc_sub1.c", directory: ".")