diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-03 00:29:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-03 00:29:27 +0000 |
commit | 89e94bd00c1a7e24b42e653fc5c0f4b00a3dee61 (patch) | |
tree | d09309dd1c4547c4c91998181fc911b3cee8c2cc /include | |
parent | 227ff79ceb2b0b0d1c9705fa6786067f401ae003 (diff) | |
download | external_llvm-89e94bd00c1a7e24b42e653fc5c0f4b00a3dee61.tar.gz external_llvm-89e94bd00c1a7e24b42e653fc5c0f4b00a3dee61.tar.bz2 external_llvm-89e94bd00c1a7e24b42e653fc5c0f4b00a3dee61.zip |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/ParameterAttributes.h | 5 |
1 files changed, 4 insertions, 1 deletions
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; /// @} |