summaryrefslogtreecommitdiffstats
path: root/llvm/test/Linker/Inputs/only-needed-named-metadata.ll
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2015-11-06 17:50:48 +0000
committerTeresa Johnson <tejohnson@google.com>2015-11-06 17:50:48 +0000
commit189b2526527c02b9ef4234266b51807308d4662a (patch)
treeb3e980b52b227f213ddc5b7e356ee5dcfeee688b /llvm/test/Linker/Inputs/only-needed-named-metadata.ll
parentb8fd162fc569449fcf4e650978865c6437edd739 (diff)
downloadbcm5719-llvm-189b2526527c02b9ef4234266b51807308d4662a.tar.gz
bcm5719-llvm-189b2526527c02b9ef4234266b51807308d4662a.zip
Restore "Move metadata linking after lazy global materialization/linking."
This reverts commit r251965. llvm-svn: 252319
Diffstat (limited to 'llvm/test/Linker/Inputs/only-needed-named-metadata.ll')
-rw-r--r--llvm/test/Linker/Inputs/only-needed-named-metadata.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/Linker/Inputs/only-needed-named-metadata.ll b/llvm/test/Linker/Inputs/only-needed-named-metadata.ll
new file mode 100644
index 00000000000..fa7bc2e3cc8
--- /dev/null
+++ b/llvm/test/Linker/Inputs/only-needed-named-metadata.ll
@@ -0,0 +1,9 @@
+@X = external global i32
+
+declare i32 @foo()
+
+define void @bar() {
+ load i32, i32* @X
+ call i32 @foo()
+ ret void
+}
OpenPOWER on IntegriCloud