summaryrefslogtreecommitdiffstats
path: root/llvm/test/LTO
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2017-06-12 20:10:48 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2017-06-12 20:10:48 +0000
commit89061b2224456b46fb09a62533687dd3bf746afa (patch)
tree30716f798fdb25531fe7c4790d84f0b272bcae50 /llvm/test/LTO
parent30b2c6bdb7e87b0fbcfcf17898dba1d2e982d5b3 (diff)
downloadbcm5719-llvm-89061b2224456b46fb09a62533687dd3bf746afa.tar.gz
bcm5719-llvm-89061b2224456b46fb09a62533687dd3bf746afa.zip
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 llvm-svn: 305227
Diffstat (limited to 'llvm/test/LTO')
-rw-r--r--llvm/test/LTO/Resolution/X86/symtab-elf.ll4
-rw-r--r--llvm/test/LTO/Resolution/X86/symtab.ll4
2 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/LTO/Resolution/X86/symtab-elf.ll b/llvm/test/LTO/Resolution/X86/symtab-elf.ll
index 1683b061c6d..d5f0fbe3700 100644
--- a/llvm/test/LTO/Resolution/X86/symtab-elf.ll
+++ b/llvm/test/LTO/Resolution/X86/symtab-elf.ll
@@ -6,8 +6,8 @@ target triple = "x86_64-unknown-linux-gnu"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
; CHECK-NOT: linker opts:
-!0 = !{i32 6, !"Linker Options", !{!{!"/include:foo"}}}
-!llvm.module.flags = !{ !0 }
+!0 = !{!"/include:foo"}
+!llvm.linker.options = !{ !0 }
@g1 = global i32 0
diff --git a/llvm/test/LTO/Resolution/X86/symtab.ll b/llvm/test/LTO/Resolution/X86/symtab.ll
index b7bc1174901..fecea0a1e7b 100644
--- a/llvm/test/LTO/Resolution/X86/symtab.ll
+++ b/llvm/test/LTO/Resolution/X86/symtab.ll
@@ -9,8 +9,8 @@ target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
source_filename = "src.c"
; CHECK: linker opts: /include:foo
-!0 = !{i32 6, !"Linker Options", !{!{!"/include:foo"}}}
-!llvm.module.flags = !{ !0 }
+!0 = !{!"/include:foo"}
+!llvm.linker.options = !{ !0 }
; CHECK: D------X _fun
define i32 @fun() {
OpenPOWER on IntegriCloud