summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bindings/llvm-c
diff options
context:
space:
mode:
authorRobert Widmann <devteam.codafi@gmail.com>2018-08-30 17:09:43 +0000
committerRobert Widmann <devteam.codafi@gmail.com>2018-08-30 17:09:43 +0000
commit0a35b7668bd605879f21ab16d80ac2f658ab5453 (patch)
tree8a2585620db561d212e9a127fa6ad43f5238af52 /llvm/test/Bindings/llvm-c
parent8d39ed895f4f1f15910ec1bcf3694b7a52a3e896 (diff)
downloadbcm5719-llvm-0a35b7668bd605879f21ab16d80ac2f658ab5453.tar.gz
bcm5719-llvm-0a35b7668bd605879f21ab16d80ac2f658ab5453.zip
[LLVM-C] Add Bindings For Named Metadata
Summary: Add a new type for named metadata nodes. Use this to implement iterators and accessors for NamedMDNodes and extend the echo test to use them to copy module-level debug information. Reviewers: whitequark, deadalnix, aprantl, dexonsmith Reviewed By: whitequark Subscribers: Wallbraker, JDevlieghere, llvm-commits, harlanhaskins Differential Revision: https://reviews.llvm.org/D47179 llvm-svn: 341085
Diffstat (limited to 'llvm/test/Bindings/llvm-c')
-rw-r--r--llvm/test/Bindings/llvm-c/echo.ll11
1 files changed, 8 insertions, 3 deletions
diff --git a/llvm/test/Bindings/llvm-c/echo.ll b/llvm/test/Bindings/llvm-c/echo.ll
index e1052595b9d..3bc0ef7a100 100644
--- a/llvm/test/Bindings/llvm-c/echo.ll
+++ b/llvm/test/Bindings/llvm-c/echo.ll
@@ -166,6 +166,11 @@ exit:
ret void
}
-!llvm.module.flags = !{!1}
-
-!1 = !{i32 2, !"Debug Info Version", i32 3}
+!llvm.module.flags = !{!0}
+!named = !{!1, !2, !3}
+
+!0 = !{i32 2, !"Debug Info Version", i32 3}
+!1 = distinct !{}
+!2 = distinct !{}
+!3 = !{!4}
+!4 = distinct !{}
OpenPOWER on IntegriCloud