mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-25 05:52:53 +02:00
a9fbb2813b
This patch reverses the edge from DIGlobalVariable to GlobalVariable. This will allow us to more easily preserve debug info metadata when manipulating global variables. Fixes PR30362. A program for upgrading test cases is attached to that bug. Differential Revision: http://reviews.llvm.org/D20147 llvm-svn: 281284
9 lines
297 B
LLVM
9 lines
297 B
LLVM
; RUN: llvm-dis -o - %s.bc | FileCheck %s
|
|
|
|
; CHECK: !0 = distinct !DIGlobalVariable(name: "a", scope: null, isLocal: false, isDefinition: true, expr: !1)
|
|
; CHECK: !1 = !DIExpression(DW_OP_constu, 42, DW_OP_stack_value)
|
|
|
|
!named = !{!0}
|
|
|
|
!0 = distinct !DIGlobalVariable(name: "a", variable: i32 42)
|