summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/AttributeList.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-01-14 01:29:54 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-01-14 01:29:54 +0000
commit05d76eaa21659dd21178c27ee8b1cfc264f68415 (patch)
tree16374f1364795dc6dc2392f55455897afbab90ab /clang/lib/Sema/AttributeList.cpp
parent4a1a36063420551782095350597046492f5e518f (diff)
downloadbcm5719-llvm-05d76eaa21659dd21178c27ee8b1cfc264f68415.tar.gz
bcm5719-llvm-05d76eaa21659dd21178c27ee8b1cfc264f68415.zip
Removing some attribute magic related to the OpenCL keyword attributes. Instead of mapping them to their semantics as a custom part of the parser, they instead map declaratively through the rest of the attribute system.
llvm-svn: 199175
Diffstat (limited to 'clang/lib/Sema/AttributeList.cpp')
-rw-r--r--clang/lib/Sema/AttributeList.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/lib/Sema/AttributeList.cpp b/clang/lib/Sema/AttributeList.cpp
index dbb31b64904..834001c6666 100644
--- a/clang/lib/Sema/AttributeList.cpp
+++ b/clang/lib/Sema/AttributeList.cpp
@@ -106,14 +106,6 @@ void AttributePool::takePool(AttributeList *pool) {
} while (pool);
}
-AttributeList *
-AttributePool::createIntegerAttribute(ASTContext &C, IdentifierInfo *Name,
- SourceLocation TokLoc, int Arg) {
- ArgsUnion IArg = IntegerLiteral::Create(C, llvm::APInt(32, (uint64_t) Arg),
- C.IntTy, TokLoc);
- return create(Name, TokLoc, 0, TokLoc, &IArg, 1, AttributeList::AS_GNU);
-}
-
#include "clang/Sema/AttrParsedAttrKinds.inc"
AttributeList::Kind AttributeList::getKind(const IdentifierInfo *Name,
OpenPOWER on IntegriCloud