diff options
| -rw-r--r-- | clang/AST/Type.cpp | 5 | ||||
| -rw-r--r-- | clang/include/clang/AST/Type.h | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/clang/AST/Type.cpp b/clang/AST/Type.cpp index 090d60b45a2..b9c3e0fc39c 100644 --- a/clang/AST/Type.cpp +++ b/clang/AST/Type.cpp @@ -84,6 +84,11 @@ void FunctionTypeProto::Profile(FoldingSetNodeID &ID, TypeRef Result, ID.AddInteger(isVariadic); } +void FunctionTypeProto::Profile(FoldingSetNodeID &ID) { + Profile(ID, getResultType(), ArgInfo, NumArgs, isVariadic()); +} + + bool RecordType::classof(const Type *T) { if (const TaggedType *TT = dyn_cast<TaggedType>(T)) return isa<RecordDecl>(TT->getDecl()); diff --git a/clang/include/clang/AST/Type.h b/clang/include/clang/AST/Type.h index 3c00564efd2..d904e4081e0 100644 --- a/clang/include/clang/AST/Type.h +++ b/clang/include/clang/AST/Type.h @@ -382,9 +382,7 @@ public: } static bool classof(const FunctionTypeProto *) { return true; } - void Profile(FoldingSetNodeID &ID) { - Profile(ID, getResultType(), ArgInfo, NumArgs, isVariadic()); - } + void Profile(FoldingSetNodeID &ID); static void Profile(FoldingSetNodeID &ID, TypeRef Result, TypeRef* ArgTys, unsigned NumArgs, bool isVariadic); }; |

