summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/tools/clang/lib/Basic/Attributes.cpp
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2020-08-03 15:06:44 +0000
committerpatrick <patrick@openbsd.org>2020-08-03 15:06:44 +0000
commitb64793999546ed8adebaeebd9d8345d18db8927d (patch)
tree4357c27b561d73b0e089727c6ed659f2ceff5f47 /gnu/llvm/tools/clang/lib/Basic/Attributes.cpp
parentAdd support for UTF-8 DISPLAY-HINTs with octet length. For now only (diff)
downloadwireguard-openbsd-b64793999546ed8adebaeebd9d8345d18db8927d.tar.xz
wireguard-openbsd-b64793999546ed8adebaeebd9d8345d18db8927d.zip
Remove LLVM 8.0.1 files.
Diffstat (limited to 'gnu/llvm/tools/clang/lib/Basic/Attributes.cpp')
-rw-r--r--gnu/llvm/tools/clang/lib/Basic/Attributes.cpp35
1 files changed, 0 insertions, 35 deletions
diff --git a/gnu/llvm/tools/clang/lib/Basic/Attributes.cpp b/gnu/llvm/tools/clang/lib/Basic/Attributes.cpp
deleted file mode 100644
index 9a8eb3d932c..00000000000
--- a/gnu/llvm/tools/clang/lib/Basic/Attributes.cpp
+++ /dev/null
@@ -1,35 +0,0 @@
-#include "clang/Basic/Attributes.h"
-#include "clang/Basic/AttrSubjectMatchRules.h"
-#include "clang/Basic/IdentifierTable.h"
-#include "llvm/ADT/StringSwitch.h"
-using namespace clang;
-
-int clang::hasAttribute(AttrSyntax Syntax, const IdentifierInfo *Scope,
- const IdentifierInfo *Attr, const TargetInfo &Target,
- const LangOptions &LangOpts) {
- StringRef Name = Attr->getName();
- // Normalize the attribute name, __foo__ becomes foo.
- if (Name.size() >= 4 && Name.startswith("__") && Name.endswith("__"))
- Name = Name.substr(2, Name.size() - 4);
-
- // Normalize the scope name, but only for gnu and clang attributes.
- StringRef ScopeName = Scope ? Scope->getName() : "";
- if (ScopeName == "__gnu__")
- ScopeName = "gnu";
- else if (ScopeName == "_Clang")
- ScopeName = "clang";
-
-#include "clang/Basic/AttrHasAttributeImpl.inc"
-
- return 0;
-}
-
-const char *attr::getSubjectMatchRuleSpelling(attr::SubjectMatchRule Rule) {
- switch (Rule) {
-#define ATTR_MATCH_RULE(NAME, SPELLING, IsAbstract) \
- case attr::NAME: \
- return SPELLING;
-#include "clang/Basic/AttrSubMatchRulesList.inc"
- }
- llvm_unreachable("Invalid subject match rule");
-}