mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 08:23:21 +01:00
fc3ee085a0
Make MDNode::destroy private. Fix the one thing that used MDNode::destroy, outside of MDNode itself. One should never delete or destroy an MDNode explicitly. MDNodes implicitly go away when there are no references to them (implementation details aside). llvm-svn: 109028
10 lines
206 B
LLVM
10 lines
206 B
LLVM
; RUN: llvm-as < %s | llvm-dis | grep "llvm.stuff = "
|
|
|
|
;; Simple NamedMDNode
|
|
!0 = metadata !{i32 42}
|
|
!1 = metadata !{metadata !"foo"}
|
|
!llvm.stuff = !{!0, !1}
|
|
|
|
!samename = !{!0, !1}
|
|
declare void @samename()
|