summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c/Core.h
diff options
context:
space:
mode:
authorAmaury Sechet <deadalnix@gmail.com>2016-04-13 22:51:40 +0000
committerAmaury Sechet <deadalnix@gmail.com>2016-04-13 22:51:40 +0000
commit3ef4e4a98c9c8ea57ee803897895458087856dbb (patch)
treedd91168cfea63dd1700900c6507ab20316031960 /llvm/include/llvm-c/Core.h
parent01db54113c5dfb4f6c0d85e83c8ff3e0e2e5a0a8 (diff)
downloadbcm5719-llvm-3ef4e4a98c9c8ea57ee803897895458087856dbb.tar.gz
bcm5719-llvm-3ef4e4a98c9c8ea57ee803897895458087856dbb.zip
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 llvm-svn: 266257
Diffstat (limited to 'llvm/include/llvm-c/Core.h')
-rw-r--r--llvm/include/llvm-c/Core.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h
index d9b6712ac27..114b8788b1b 100644
--- a/llvm/include/llvm-c/Core.h
+++ b/llvm/include/llvm-c/Core.h
@@ -476,6 +476,9 @@ unsigned LLVMGetMDKindIDInContext(LLVMContextRef C, const char *Name,
unsigned SLen);
unsigned LLVMGetMDKindID(const char *Name, unsigned SLen);
+unsigned LLVMGetAttrKindIDInContext(LLVMContextRef C, const char *Name,
+ size_t SLen);
+
/**
* @}
*/
OpenPOWER on IntegriCloud