mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
1a6d5eb0da
As a follow on to D96282, since bug point passes is built as a module the proper file extension to use is LLVM_PLUGIN_EXT, rather than SHLIBEXT. Using SHLIBEXT causes the tests to load a non-existent file on AIX. We also adjust the PluginsTest unittest to use LLVM_PLUGIN_EXT for similar reasons. This change should hopefully make little difference to other platforms, since generally `SHLIBEXT=LTDL_SHLIB_EXT=CMAKE_SHARED_LIBRARY_SUFFIX` and `LLVM_PLUGIN_EXT=CMAKE_SHARED_LIBRARY_SUFFIX` on every platform except AIX. Reviewed By: hubert.reinterpretcast Differential Revision: https://reviews.llvm.org/D101412
40 lines
1.9 KiB
LLVM
40 lines
1.9 KiB
LLVM
; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%pluginext %s -output-prefix %t -bugpoint-crash-too-many-cus -silence-passes -disable-strip-debuginfo > /dev/null
|
|
; RUN: llvm-dis %t-reduced-simplified.bc -o - | FileCheck %s
|
|
; RUN-DISABLE: bugpoint -disable-namedmd-remove -load %llvmshlibdir/BugpointPasses%pluginext %s -output-prefix %t -bugpoint-crash-too-many-cus -silence-passes > /dev/null
|
|
; RUN-DISABLE: llvm-dis %t-reduced-simplified.bc -o - | FileCheck %s
|
|
; REQUIRES: plugins
|
|
|
|
; CHECK: !llvm.dbg.cu = !{![[FIRST:[0-9]+]], ![[SECOND:[0-9]+]]}
|
|
; CHECK-DISABLE: !llvm.dbg.cu = !{![[FIRST:[0-9]+]], ![[SECOND:[0-9]+]],
|
|
; CHECK-DISABLE-SAME: ![[THIRD:[0-9]+]], ![[FOURTH:[0-9]+]], ![[FIFTH:[0-9]+]]}
|
|
!llvm.dbg.cu = !{!0, !1, !2, !3, !4, !5}
|
|
; CHECK-NOT: !named
|
|
; CHECK-DISABLE: !named
|
|
!named = !{!0, !1, !2, !3, !4, !5}
|
|
; CHECK: !llvm.module.flags = !{![[DIVERSION:[0-9]+]]}
|
|
!llvm.module.flags = !{!6, !7}
|
|
|
|
; CHECK-DAG: ![[FIRST]] = distinct !DICompileUnit(language: DW_LANG_Julia,
|
|
; CHECK-DAG: ![[SECOND]] = distinct !DICompileUnit(language: DW_LANG_Julia,
|
|
; CHECK-DAG: ![[DIVERSION]] = !{i32 2, !"Debug Info Version", i32 3}
|
|
; CHECK-DAG: !DIFile(filename: "a", directory: "b")
|
|
|
|
; 4 nodes survive. Due to renumbering !4 should not exist
|
|
; CHECK-NOT: !4
|
|
|
|
!0 = distinct !DICompileUnit(language: DW_LANG_Julia,
|
|
file: !8)
|
|
!1 = distinct !DICompileUnit(language: DW_LANG_Julia,
|
|
file: !8)
|
|
!2 = distinct !DICompileUnit(language: DW_LANG_Julia,
|
|
file: !8)
|
|
!3 = distinct !DICompileUnit(language: DW_LANG_Julia,
|
|
file: !8)
|
|
!4 = distinct !DICompileUnit(language: DW_LANG_Julia,
|
|
file: !8)
|
|
!5 = distinct !DICompileUnit(language: DW_LANG_Julia,
|
|
file: !8)
|
|
!6 = !{i32 2, !"Dwarf Version", i32 2}
|
|
!7 = !{i32 2, !"Debug Info Version", i32 3}
|
|
!8 = !DIFile(filename: "a", directory: "b")
|