1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/test/Linker/metadata-global.ll
Evgeniy Stepanov c40d5a1d2a Remap metadata attached to global variables.
Fix for PR32577.
Global variables may have !associated metadata, which includes a reference to another global. It needs remapping.

llvm-svn: 302203
2017-05-04 23:29:39 +00:00

12 lines
217 B
LLVM

; RUN: llvm-link %s -S | FileCheck %s
; CHECK-DAG: @a = global i32 0
; CHECK-DAG: @b = global i32 0, !associated !0
; CHECK-DAG: !0 = !{i32* @b}
@a = global i32 0
@b = global i32 0, !associated !0
!0 = !{i32* @b}