[lld] r305227 - IR: Replace the "Linker Options" module flag with "llvm.linker.options" named metadata.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 12 13:10:50 PDT 2017
Author: pcc
Date: Mon Jun 12 15:10:48 2017
New Revision: 305227
URL: http://llvm.org/viewvc/llvm-project?rev=305227&view=rev
Log:
IR: Replace the "Linker Options" module flag with "llvm.linker.options" named metadata.
The new metadata is easier to manipulate than module flags.
Differential Revision: https://reviews.llvm.org/D31349
Modified:
lld/trunk/test/COFF/Inputs/constant-export.ll
lld/trunk/test/COFF/include-lto.ll
lld/trunk/test/COFF/lto-linker-opts.ll
Modified: lld/trunk/test/COFF/Inputs/constant-export.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/COFF/Inputs/constant-export.ll?rev=305227&r1=305226&r2=305227&view=diff
==============================================================================
--- lld/trunk/test/COFF/Inputs/constant-export.ll (original)
+++ lld/trunk/test/COFF/Inputs/constant-export.ll Mon Jun 12 15:10:48 2017
@@ -3,8 +3,5 @@ target triple = "i686-unknown-windows-ms
@__CFConstantStringClassReference = common global [32 x i32] zeroinitializer, align 4
-!llvm.module.flags = !{!0}
-
-!0 = !{i32 6, !"Linker Options", !1}
-!1 = !{!2}
-!2 = !{!" -export:___CFConstantStringClassReference,CONSTANT"}
+!llvm.linker.options = !{!0}
+!0 = !{!" -export:___CFConstantStringClassReference,CONSTANT"}
Modified: lld/trunk/test/COFF/include-lto.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/COFF/include-lto.ll?rev=305227&r1=305226&r2=305227&view=diff
==============================================================================
--- lld/trunk/test/COFF/include-lto.ll (original)
+++ lld/trunk/test/COFF/include-lto.ll Mon Jun 12 15:10:48 2017
@@ -17,8 +17,5 @@ define i32 @foo() {
ret i32 0
}
-!llvm.module.flags = !{!0}
-
-!0 = !{i32 6, !"Linker Options", !1}
-!1 = !{!2}
-!2 = !{!"/INCLUDE:foo"}
+!llvm.linker.options = !{!0}
+!0 = !{!"/INCLUDE:foo"}
Modified: lld/trunk/test/COFF/lto-linker-opts.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/COFF/lto-linker-opts.ll?rev=305227&r1=305226&r2=305227&view=diff
==============================================================================
--- lld/trunk/test/COFF/lto-linker-opts.ll (original)
+++ lld/trunk/test/COFF/lto-linker-opts.ll Mon Jun 12 15:10:48 2017
@@ -4,8 +4,5 @@
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
-!llvm.module.flags = !{!0}
-
-!0 = !{i32 6, !"Linker Options", !1}
-!1 = !{!2}
-!2 = !{!"/DEFAULTLIB:ret42.lib"}
+!llvm.linker.options = !{!0}
+!0 = !{!"/DEFAULTLIB:ret42.lib"}
More information about the llvm-commits
mailing list