mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 16:31:16 +00:00
1e08165ae9
- Instead of computing a bunch of buckets of different flag types, just do an incremental link resolving conflicts as they arise. - This also has the advantage of making the link result deterministic and not dependent on map iteration order. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172634 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
507 B
LLVM
15 lines
507 B
LLVM
; RUN: llvm-link %s %p/module-flags-3-b.ll -S -o - | sort | FileCheck %s
|
|
|
|
; Test 'require' behavior.
|
|
|
|
; CHECK: !0 = metadata !{i32 1, metadata !"foo", i32 37}
|
|
; CHECK: !1 = metadata !{i32 1, metadata !"bar", i32 42}
|
|
; CHECK: !2 = metadata !{i32 3, metadata !"foo", metadata !3}
|
|
; CHECK: !3 = metadata !{metadata !"bar", i32 42}
|
|
; CHECK: !llvm.module.flags = !{!0, !1, !2}
|
|
|
|
!0 = metadata !{ i32 1, metadata !"foo", i32 37 }
|
|
!1 = metadata !{ i32 1, metadata !"bar", i32 42 }
|
|
|
|
!llvm.module.flags = !{ !0, !1 }
|