forked from OSchip/llvm-project
parent
47f7711e4b
commit
777a6bb582
|
@ -200,7 +200,7 @@ public:
|
|||
|
||||
/// getFunctionType - Return a normal function type with a typed argument
|
||||
/// list. isVariadic indicates whether the argument list includes '...'.
|
||||
QualType getFunctionType(QualType ResultTy, QualType *ArgArray,
|
||||
QualType getFunctionType(QualType ResultTy, const QualType *ArgArray,
|
||||
unsigned NumArgs, bool isVariadic);
|
||||
|
||||
/// getTypeDeclType - Return the unique reference to the type for
|
||||
|
|
|
@ -905,7 +905,7 @@ protected:
|
|||
/// 'int foo(int)' or 'int foo(void)'. 'void' is represented as having no
|
||||
/// arguments, not as having a single void argument.
|
||||
class FunctionTypeProto : public FunctionType, public llvm::FoldingSetNode {
|
||||
FunctionTypeProto(QualType Result, QualType *ArgArray, unsigned numArgs,
|
||||
FunctionTypeProto(QualType Result, const QualType *ArgArray, unsigned numArgs,
|
||||
bool isVariadic, QualType Canonical)
|
||||
: FunctionType(FunctionProto, Result, isVariadic, Canonical),
|
||||
NumArgs(numArgs) {
|
||||
|
|
|
@ -816,7 +816,7 @@ QualType ASTContext::getFunctionTypeNoProto(QualType ResultTy) {
|
|||
|
||||
/// getFunctionType - Return a normal function type with a typed argument
|
||||
/// list. isVariadic indicates whether the argument list includes '...'.
|
||||
QualType ASTContext::getFunctionType(QualType ResultTy, QualType *ArgArray,
|
||||
QualType ASTContext::getFunctionType(QualType ResultTy, const QualType *ArgArray,
|
||||
unsigned NumArgs, bool isVariadic) {
|
||||
// Unique functions, to guarantee there is only one function of a particular
|
||||
// structure.
|
||||
|
|
Loading…
Reference in New Issue