summaryrefslogtreecommitdiffstats
path: root/clang/utils
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-12-05 15:24:55 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-12-05 15:24:55 +0000
commita6f759e423940dd5357772372524daf469c40ff1 (patch)
treec376ec6d41375275bc7e571c8f32286baf460191 /clang/utils
parent3c0f9b4a7d0b26f23ea2227d6c58cec00d9c3459 (diff)
downloadbcm5719-llvm-a6f759e423940dd5357772372524daf469c40ff1.tar.gz
bcm5719-llvm-a6f759e423940dd5357772372524daf469c40ff1.zip
Modify __has_attribute so that it only looks for GNU-style attributes. Removes the ability to look for generic attributes and keywords via this macro, which has the potential to be a breaking change. However, since there is __has_cpp_attribute and __has_declspec_attribute, and given the limited usefulness of querying a generic attribute name regardless of syntax, this seems like the correct path forward.
llvm-svn: 223468
Diffstat (limited to 'clang/utils')
-rw-r--r--clang/utils/TableGen/ClangAttrEmitter.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/clang/utils/TableGen/ClangAttrEmitter.cpp b/clang/utils/TableGen/ClangAttrEmitter.cpp
index 7847b4f931a..67f9452ba60 100644
--- a/clang/utils/TableGen/ClangAttrEmitter.cpp
+++ b/clang/utils/TableGen/ClangAttrEmitter.cpp
@@ -1920,9 +1920,6 @@ void EmitClangAttrHasAttrImpl(RecordKeeper &Records, raw_ostream &OS) {
}
OS << "switch (Syntax) {\n";
- OS << "case AttrSyntax::Generic:\n";
- OS << " return llvm::StringSwitch<int>(Name)\n";
- GenerateHasAttrSpellingStringSwitch(Attrs, OS);
OS << "case AttrSyntax::GNU:\n";
OS << " return llvm::StringSwitch<int>(Name)\n";
GenerateHasAttrSpellingStringSwitch(GNU, OS, "GNU");
OpenPOWER on IntegriCloud