mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
54103de7c1
The new metadata is easier to manipulate than module flags. Differential Revision: https://reviews.llvm.org/D31349 llvm-svn: 305227
16 lines
473 B
LLVM
16 lines
473 B
LLVM
; RUN: llvm-as -disable-verify < %s | llvm-dis | FileCheck %s
|
|
; RUN: not llvm-as < %s 2>&1 | FileCheck --check-prefix=ERROR %s
|
|
|
|
; CHECK: !llvm.linker.options = !{!2, !3}
|
|
; CHECK: !2 = !{!"/DEFAULTLIB:libcmtd.lib"}
|
|
; CHECK: !3 = !{!"/DEFAULTLIB:oldnames.lib"}
|
|
|
|
; ERROR: 'Linker Options' named metadata no longer supported
|
|
|
|
!0 = !{i32 6, !"Linker Options", !1}
|
|
!1 = !{!2, !3}
|
|
!2 = !{!"/DEFAULTLIB:libcmtd.lib"}
|
|
!3 = !{!"/DEFAULTLIB:oldnames.lib"}
|
|
|
|
!llvm.module.flags = !{!0}
|