Added FoldingSet style 'profiling' support for APInt.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46188 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Ted Kremenek
2008-01-19 04:23:33 +00:00
parent 0a3fecad0a
commit e420debd26
2 changed files with 18 additions and 1 deletions

View File

@@ -24,6 +24,7 @@
namespace llvm {
class Serializer;
class Deserializer;
class FoldingSetNodeID;
/* An unsigned host type used as a single part of a multi-part
bignum. */
@@ -210,6 +211,10 @@ public:
/// for object deserialization (pair this with the static method Read).
explicit APInt() : BitWidth(1) {}
/// Profile - Used to insert APInt objects, or objects that contain APInt
/// objects, into FoldingSets.
void Profile(FoldingSetNodeID& ID) const;
/// @brief Used by the Bitcode serializer to emit APInts to Bitcode.
void Emit(Serializer& S) const;