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 | 9a629abf3d9211aaaf96f66b7bf6f2fe99414bc3 (patch) | |
tree | dd433c5f563d2c3699acadd6531d66d765961d08 /clang/lib/Sema | |
parent | 9a31ccbad87d98d7d567aae3228f955e4f2d03e7 (diff) | |
download | bcm5719-llvm-9a629abf3d9211aaaf96f66b7bf6f2fe99414bc3.tar.gz bcm5719-llvm-9a629abf3d9211aaaf96f66b7bf6f2fe99414bc3.zip |
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.
llvm-svn: 173749
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r-- | clang/lib/Sema/SemaDeclAttr.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp index 12483a34e02..a4b8c356dde 100644 --- a/clang/lib/Sema/SemaDeclAttr.cpp +++ b/clang/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) |