the big refactoring bits of PR3782.

This introduces FunctionType::ExtInfo to hold the calling convention and the
noreturn attribute. The next patch will extend it to include the regparm
attribute and fix the bug.

llvm-svn: 99920
This commit is contained in:
Rafael Espindola
2010-03-30 20:24:48 +00:00
parent 04c713dd45
commit c50c27cca8
34 changed files with 279 additions and 253 deletions

View File

@@ -134,8 +134,7 @@ bool Sema::CheckEquivalentExceptionSpec(FunctionDecl *Old, FunctionDecl *New) {
NewProto->isVariadic(),
NewProto->getTypeQuals(),
true, false, 0, 0,
NewProto->getNoReturnAttr(),
NewProto->getCallConv());
NewProto->getExtInfo());
New->setType(NewType);
return false;
}
@@ -157,8 +156,7 @@ bool Sema::CheckEquivalentExceptionSpec(FunctionDecl *Old, FunctionDecl *New) {
OldProto->hasAnyExceptionSpec(),
OldProto->getNumExceptions(),
OldProto->exception_begin(),
NewProto->getNoReturnAttr(),
NewProto->getCallConv());
NewProto->getExtInfo());
New->setType(NewType);
// If exceptions are disabled, suppress the warning about missing