Make default arguments to getFunctionNoProtoType an all or nothing option (as they already are in practise).

llvm-svn: 99785
This commit is contained in:
Rafael Espindola 2010-03-28 22:48:23 +00:00
parent 2ac0582419
commit 3e69c3ed31
1 changed files with 5 additions and 2 deletions

View File

@ -555,8 +555,11 @@ public:
/// getFunctionNoProtoType - Return a K&R style C function type like 'int()'.
///
QualType getFunctionNoProtoType(QualType ResultTy, bool NoReturn = false,
CallingConv CallConv = CC_Default);
QualType getFunctionNoProtoType(QualType ResultTy, bool NoReturn,
CallingConv CallConv);
QualType getFunctionNoProtoType(QualType ResultTy) {
return getFunctionNoProtoType(ResultTy, false, CC_Default);
}
/// getFunctionType - Return a normal function type with a typed argument
/// list. isVariadic indicates whether the argument list includes '...'.