diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-02-11 17:24:50 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-02-11 17:24:50 +0000 |
commit | 1f801fa5ada9cb40fb97ae755c282e91af54a1bc (patch) | |
tree | 892502fb68fc883c8ed89d9185f8cd586e8ef8a9 /include/llvm/ADT/APFloat.h | |
parent | 04feb51886805046e8b1af10b7d21bc1ef85f457 (diff) | |
download | external_llvm-1f801fa5ada9cb40fb97ae755c282e91af54a1bc.zip external_llvm-1f801fa5ada9cb40fb97ae755c282e91af54a1bc.tar.gz external_llvm-1f801fa5ada9cb40fb97ae755c282e91af54a1bc.tar.bz2 |
Added "Profile" method to APFloat for use with FoldingSet.
Added member template "Add" to FoldingSetNodeID that allows "adding" arbitrary
objects to a profile via dispatch to FoldingSetTrait<T>::Profile().
Removed FoldingSetNodeID::AddAPFloat and FoldingSetNodeID::APInt, as their
functionality is now replaced using the above mentioned member template.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46957 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/APFloat.h')
-rw-r--r-- | include/llvm/ADT/APFloat.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/ADT/APFloat.h b/include/llvm/ADT/APFloat.h index 9e3e484..73d1e02 100644 --- a/include/llvm/ADT/APFloat.h +++ b/include/llvm/ADT/APFloat.h @@ -181,6 +181,10 @@ namespace llvm { APFloat(const APFloat &); ~APFloat(); + /// Profile - Used to insert APFloat objects, or objects that contain + /// APFloat objects, into FoldingSets. + void Profile(FoldingSetNodeID& NID) const; + /// @brief Used by the Bitcode serializer to emit APInts to Bitcode. void Emit(Serializer& S) const; |