mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-02 09:16:40 +00:00

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)
|