Finish off semantic analysis for regparm, and remove the warning. Also

remove a redundant error in CodeGen.

llvm-svn: 67868
This commit is contained in:
Eli Friedman
2009-03-27 21:06:47 +00:00
parent 6ecb5afcd6
commit 7044b76707
5 changed files with 44 additions and 13 deletions

View File

@@ -311,9 +311,6 @@ void CodeGenModule::SetFunctionAttributesForDefinition(const Decl *D,
if (D->getAttr<NoinlineAttr>())
F->addFnAttr(llvm::Attribute::NoInline);
if (D->getAttr<RegparmAttr>())
ErrorUnsupported(D, "regparm attribute");
}
void CodeGenModule::SetMethodAttributes(const ObjCMethodDecl *MD,