[PATCH] D20417: Extract renaming from D19181
Amaury SECHET via llvm-commits
llvm-commits at lists.llvm.org
Mon May 23 09:45:07 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL270452: Extract renaming from D19181 (authored by deadalnix).
Changed prior to commit:
http://reviews.llvm.org/D20417?vs=57743&id=58109#toc
Repository:
rL LLVM
http://reviews.llvm.org/D20417
Files:
llvm/trunk/docs/ReleaseNotes.rst
llvm/trunk/include/llvm-c/Core.h
llvm/trunk/lib/IR/Core.cpp
Index: llvm/trunk/docs/ReleaseNotes.rst
===================================================================
--- llvm/trunk/docs/ReleaseNotes.rst
+++ llvm/trunk/docs/ReleaseNotes.rst
@@ -55,7 +55,7 @@
in favor of LLVMGetDataLayoutStr.
* The C API enum LLVMAttribute is deprecated in favor of
- LLVMGetAttrKindID.
+ LLVMGetAttributeKindForName.
* ``TargetFrameLowering::eliminateCallFramePseudoInstr`` now returns an
iterator to the next instruction instead of ``void``. Targets that previously
Index: llvm/trunk/include/llvm-c/Core.h
===================================================================
--- llvm/trunk/include/llvm-c/Core.h
+++ llvm/trunk/include/llvm-c/Core.h
@@ -487,7 +487,7 @@
* NB: Attribute names and/or id are subject to change without
* going through the C API deprecation cycle.
*/
-unsigned LLVMGetAttrKindID(const char *Name, size_t SLen);
+unsigned LLVMGetAttributeKindForName(const char *Name, size_t SLen);
/**
* @}
Index: llvm/trunk/lib/IR/Core.cpp
===================================================================
--- llvm/trunk/lib/IR/Core.cpp
+++ llvm/trunk/lib/IR/Core.cpp
@@ -124,13 +124,8 @@
#define GET_ATTR_KIND_FROM_NAME
#include "AttributesCompatFunc.inc"
-unsigned LLVMGetAttrKindID(const char *Name, size_t SLen) {
- auto K = getAttrKindFromName(StringRef(Name, SLen));
- if (K == Attribute::None) {
- return 0;
- }
-
- return AttributeImpl::getAttrMask(K);
+unsigned LLVMGetAttributeKindForName(const char *Name, size_t SLen) {
+ return getAttrKindFromName(StringRef(Name, SLen));
}
char *LLVMGetDiagInfoDescription(LLVMDiagnosticInfoRef DI) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20417.58109.patch
Type: text/x-patch
Size: 1629 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160523/c58e0032/attachment.bin>
More information about the llvm-commits
mailing list