diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-01-29 01:38:41 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-01-29 01:38:41 +0000 |
commit | cda7968b38d76848b4fb24f7cc28ab83835b4ea3 (patch) | |
tree | 744f269ce4546de2c9db60d9439a0428a1b79c6b /lib/Sema/SemaDeclAttr.cpp | |
parent | f727e1c6cc382c1b5fe23b38ba04df2d4a2f358a (diff) |
Actually remove the hack which was blocking the Borland-style attributes from
working, and add the missing attribute spellings. This brings _pascal,
_fastcall, _stdcall and _cdecl to life in -fborland-extensions mode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173749 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclAttr.cpp')
-rw-r--r-- | lib/Sema/SemaDeclAttr.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp index 12483a34e0..a4b8c356dd 100644 --- a/lib/Sema/SemaDeclAttr.cpp +++ b/lib/Sema/SemaDeclAttr.cpp @@ -4759,13 +4759,6 @@ static void ProcessDeclAttribute(Sema &S, Scope *scope, Decl *D, if (Attr.isInvalid()) return; - // FIXME: Ignore unknown keyword attributes for now. We see this in the case - // of some Borland attributes, like __pascal. - // FIXME: Add these attributes to Attr.td and mark as ignored! - if (Attr.isKeywordAttribute() && - Attr.getKind() == AttributeList::UnknownAttribute) - return; - // Ignore C++11 attributes on declarator chunks: they appertain to the type // instead. if (Attr.isCXX11Attribute() && !IncludeCXX11Attributes) |