diff options
author | Amaury Sechet <deadalnix@gmail.com> | 2016-05-23 16:38:25 +0000 |
---|---|---|
committer | Amaury Sechet <deadalnix@gmail.com> | 2016-05-23 16:38:25 +0000 |
commit | 447831acae5ac8951fa1b3f72b88fff0d1a18515 (patch) | |
tree | a68e2d9e79cff6732d5949a40a0b112d6ce33db4 /llvm/lib/IR/Core.cpp | |
parent | 2ab3d20819ec75e188108244e0e41508d4b7d403 (diff) | |
download | bcm5719-llvm-447831acae5ac8951fa1b3f72b88fff0d1a18515.tar.gz bcm5719-llvm-447831acae5ac8951fa1b3f72b88fff0d1a18515.zip |
Extract renaming from D19181
Summary: This needs to get in before anything is released concerning attribute. If the old name gets in the wild, then we are stuck with it forever. Putting it in its own diff should getting that part at least in fast.
Reviewers: Wallbraker, whitequark, joker.eph, echristo, rafael, jyknight
Subscribers: llvm-commits, joker.eph
Differential Revision: http://reviews.llvm.org/D20417
llvm-svn: 270452
Diffstat (limited to 'llvm/lib/IR/Core.cpp')
-rw-r--r-- | llvm/lib/IR/Core.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/llvm/lib/IR/Core.cpp b/llvm/lib/IR/Core.cpp index 0c6c6f5157d..8429ef1a5e0 100644 --- a/llvm/lib/IR/Core.cpp +++ b/llvm/lib/IR/Core.cpp @@ -124,13 +124,8 @@ unsigned LLVMGetMDKindID(const char *Name, unsigned SLen) { #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) { |