[LLVM-C] Add Bindings For Module Flags
authorRobert Widmann <devteam.codafi@gmail.com>
Mon, 14 May 2018 08:09:00 +0000 (08:09 +0000)
committerRobert Widmann <devteam.codafi@gmail.com>
Mon, 14 May 2018 08:09:00 +0000 (08:09 +0000)
commitbce36770b7c5d9e2400216902fe2c27759079eb7
treeaa3f5d72ffc5f3deb7a09b3a57165040e870ca44
parent73cf805ffdc53c384c742f05fb777e9b8a90131c
[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
llvm/include/llvm-c/Core.h
llvm/include/llvm-c/Types.h
llvm/lib/IR/Core.cpp
llvm/test/Bindings/llvm-c/echo.ll
llvm/tools/llvm-c-test/echo.cpp