summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR
diff options
context:
space:
mode:
authorAmaury Sechet <deadalnix@gmail.com>2016-04-13 23:01:39 +0000
committerAmaury Sechet <deadalnix@gmail.com>2016-04-13 23:01:39 +0000
commit2a734db7d3418cae537c63337d77243a22b2db81 (patch)
tree672ad60f0e97e48c9063d514f17da817b622185c /llvm/lib/IR
parent11f60fd65a79350de1e9f295ea2c997bdc534ea9 (diff)
downloadbcm5719-llvm-2a734db7d3418cae537c63337d77243a22b2db81.tar.gz
bcm5719-llvm-2a734db7d3418cae537c63337d77243a22b2db81.zip
Revert "Add LLVMGetAttrKindIDInContext in the C API in order to facilitate migration away from LLVMAttribute"
This reverts commit 0bcfd95c268bcb180a525e1837e84475df8acdc7. llvm-svn: 266259
Diffstat (limited to 'llvm/lib/IR')
-rw-r--r--llvm/lib/IR/Core.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/lib/IR/Core.cpp b/llvm/lib/IR/Core.cpp
index 147700dea0a..1b4ad203969 100644
--- a/llvm/lib/IR/Core.cpp
+++ b/llvm/lib/IR/Core.cpp
@@ -13,8 +13,6 @@
//===----------------------------------------------------------------------===//
#include "llvm-c/Core.h"
-#include "llvm/ADT/StringSwitch.h"
-#include "AttributeImpl.h"
#include "llvm/Bitcode/ReaderWriter.h"
#include "llvm/IR/Attributes.h"
#include "llvm/IR/CallSite.h"
@@ -121,16 +119,6 @@ unsigned LLVMGetMDKindID(const char *Name, unsigned SLen) {
return LLVMGetMDKindIDInContext(LLVMGetGlobalContext(), Name, SLen);
}
-#define GET_ATTR_KIND_FROM_NAME
-#include "AttributesCompatFunc.inc"
-
-unsigned LLVMGetAttrKindIDInContext(LLVMContextRef C, const char *Name,
- size_t SLen) {
- auto K = getAttrKindFromName(StringRef(Name, SLen));
- assert(K != Attribute::None && "Invalid attribute");
- return AttributeImpl::getAttrMask(K);
-}
-
char *LLVMGetDiagInfoDescription(LLVMDiagnosticInfoRef DI) {
std::string MsgStorage;
raw_string_ostream Stream(MsgStorage);
OpenPOWER on IntegriCloud