Add support for cdecl attribute. (As far as I know, it doesn't affect CodeGen

unless we start implementing command-line switches which override the default
calling convention, so the effect is mostly to silence unknown attribute
warnings.)

llvm-svn: 86571
This commit is contained in:
Eli Friedman
2009-11-09 18:38:53 +00:00
parent a8ab71bad7
commit e4310c8273
7 changed files with 46 additions and 0 deletions

View File

@@ -442,6 +442,8 @@ Attr *PCHReader::ReadAttributes() {
(BlocksAttr::BlocksAttrTypes)Record[Idx++]);
break;
SIMPLE_ATTR(CDecl);
case Attr::Cleanup:
New = ::new (*Context) CleanupAttr(
cast<FunctionDecl>(GetDecl(Record[Idx++])));