diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-16 19:29:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-16 19:29:19 +0000 |
commit | 3b8097a55429511e968deb5e559607561d37e0de (patch) | |
tree | 0dd65ab2c671262b214d8e733ddcab56fd9b960f /lib/Parse/AttributeList.cpp | |
parent | ec1afbfd8e880d0169aab0ececa2e7e1611f4955 (diff) |
accept and ignore __gcc_tdiag__ so we don't produce warnings
building mainline GCC, PR6542
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98661 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/AttributeList.cpp')
-rw-r--r-- | lib/Parse/AttributeList.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Parse/AttributeList.cpp b/lib/Parse/AttributeList.cpp index b96dff573d..a66dd96b25 100644 --- a/lib/Parse/AttributeList.cpp +++ b/lib/Parse/AttributeList.cpp @@ -54,7 +54,6 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo *Name) { if (AttrName.startswith("__") && AttrName.endswith("__")) AttrName = AttrName.substr(2, AttrName.size() - 4); - // FIXME: Hand generating this is neither smart nor efficient. return llvm::StringSwitch<AttributeList::Kind>(AttrName) .Case("weak", AT_weak) .Case("weakref", AT_weakref) @@ -93,6 +92,7 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo *Name) { .Case("dllimport", AT_dllimport) .Case("dllexport", AT_dllexport) .Case("may_alias", IgnoredAttribute) // FIXME: TBAA + .Case("gcc_tdiag", IgnoredAttribute) // GCC diagnostics type checking. .Case("base_check", AT_base_check) .Case("deprecated", AT_deprecated) .Case("visibility", AT_visibility) |