From 89e94bd00c1a7e24b42e653fc5c0f4b00a3dee61 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 3 Jan 2008 00:29:27 +0000 Subject: Don't create a new ParamAttrsList (which copies the vector) just to get a profile. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45524 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ParameterAttributes.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/llvm/ParameterAttributes.h b/include/llvm/ParameterAttributes.h index 05c3ebe939..2b557bd684 100644 --- a/include/llvm/ParameterAttributes.h +++ b/include/llvm/ParameterAttributes.h @@ -266,7 +266,10 @@ class ParamAttrsList : public FoldingSetNode { /// @name Implementation Details /// @{ public: - void Profile(FoldingSetNodeID &ID) const; + void Profile(FoldingSetNodeID &ID) const { + Profile(ID, attrs); + } + static void Profile(FoldingSetNodeID &ID, const ParamAttrsVector &Attrs); void dump() const; /// @} -- cgit v1.2.3-70-g09d2