[LLVM-C] Redo unnamed_address attribute bindings
authorRobert Widmann <devteam.codafi@gmail.com>
Wed, 14 Mar 2018 06:45:51 +0000 (06:45 +0000)
committerRobert Widmann <devteam.codafi@gmail.com>
Wed, 14 Mar 2018 06:45:51 +0000 (06:45 +0000)
commit4bb481b2f2a3915895c8795dbc90a54be5cf9cfd
treecfb958a0f7311663e87b1d01065c19bc31f204c1
parent2d603a1860f003d90c4e7be95575552c69c2194f
[LLVM-C] Redo unnamed_address attribute bindings

Summary:
The old bindings should have used an enum instead of a boolean.  This
deprecates LLVMHasUnnamedAddr and LLVMSetUnnamedAddr , replacing them
with LLVMGetUnnamedAddress and LLVMSetUnnamedAddress respectively that do.
Though it is unlikely LLVM will gain more supported global value linker
hints, the new API can scale to accommodate this.

Reviewers: deadalnix, whitequark

Reviewed By: whitequark

Subscribers: llvm-commits, harlanhaskins

Differential Revision: https://reviews.llvm.org/D43448

llvm-svn: 327479
llvm/include/llvm-c/Core.h
llvm/lib/IR/Core.cpp
llvm/test/Bindings/llvm-c/echo.ll
llvm/tools/llvm-c-test/echo.cpp