summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bindings/llvm-c
diff options
context:
space:
mode:
authorRobert Widmann <devteam.codafi@gmail.com>2018-05-14 08:09:00 +0000
committerRobert Widmann <devteam.codafi@gmail.com>2018-05-14 08:09:00 +0000
commitbce36770b7c5d9e2400216902fe2c27759079eb7 (patch)
treeaa3f5d72ffc5f3deb7a09b3a57165040e870ca44 /llvm/test/Bindings/llvm-c
parent73cf805ffdc53c384c742f05fb777e9b8a90131c (diff)
downloadbcm5719-llvm-bce36770b7c5d9e2400216902fe2c27759079eb7.tar.gz
bcm5719-llvm-bce36770b7c5d9e2400216902fe2c27759079eb7.zip
[LLVM-C] Add Bindings For Module Flags
Summary: The first foray into merging debug info into the echo tests. - Add bindings to Module::getModuleFlagsMetadata() in the form of LLVMCopyModuleFlagsMetadata - Add the opaque type LLVMModuleFlagEntry to represent Module::ModuleFlagEntry - Add accessors for LLVMModuleFlagEntry's behavior, key, and metadata node. Reviewers: whitequark, deadalnix Reviewed By: whitequark Subscribers: aprantl, JDevlieghere, llvm-commits, harlanhaskins Differential Revision: https://reviews.llvm.org/D46792 llvm-svn: 332219
Diffstat (limited to 'llvm/test/Bindings/llvm-c')
-rw-r--r--llvm/test/Bindings/llvm-c/echo.ll4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/Bindings/llvm-c/echo.ll b/llvm/test/Bindings/llvm-c/echo.ll
index 958aba0f3cf..071cbe8934f 100644
--- a/llvm/test/Bindings/llvm-c/echo.ll
+++ b/llvm/test/Bindings/llvm-c/echo.ll
@@ -159,3 +159,7 @@ cleanup:
exit:
ret void
}
+
+!llvm.module.flags = !{!1}
+
+!1 = !{i32 2, !"Debug Info Version", i32 3}
OpenPOWER on IntegriCloud