OSDN Git Service

Add LLVMGetAttrKindIDInContext in the C API in order to facilitate migration away...
authorAmaury Sechet <deadalnix@gmail.com>
Wed, 13 Apr 2016 22:51:40 +0000 (22:51 +0000)
committerAmaury Sechet <deadalnix@gmail.com>
Wed, 13 Apr 2016 22:51:40 +0000 (22:51 +0000)
commit2af3e8f7984572c1ae586c15e2160ebf14f74de7
tree48a33f11b1f23eb9a58dfb972dc044e74c9d6fd6
parent55e47a634f841bf4722956f6498a0a1ea6c70993
Add LLVMGetAttrKindIDInContext in the C API in order to facilitate migration away from LLVMAttribute

Summary: LLVMAttribute has outlived its utility and is becoming a problem for C API users that what to use all the LLVM attributes. In order to help moving away from LLVMAttribute in a smooth manner, this diff introduce LLVMGetAttrKindIDInContext, which can be used instead of the enum values.

Reviewers: Wallbraker, whitequark, joker.eph, echristo

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D18749

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@266257 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm-c/Core.h
lib/IR/Core.cpp
utils/TableGen/Attributes.cpp