diff options
author | Ted Kremenek <kremenek@apple.com> | 2007-10-26 21:50:10 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2007-10-26 21:50:10 +0000 |
commit | 1a43e5ffe1ba9bfcb531f7c6a68ac8c49bd28dc1 (patch) | |
tree | c3c0aacfa683ab6257da090aec0c0394da55290f /include/llvm/ADT/APInt.h | |
parent | 7f46734b66306bb81720fbe617c15b1184b13807 (diff) |
Added serialization support for APInt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43405 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/APInt.h')
-rw-r--r-- | include/llvm/ADT/APInt.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h index ae581e0a33..fb71907b10 100644 --- a/include/llvm/ADT/APInt.h +++ b/include/llvm/ADT/APInt.h @@ -16,6 +16,7 @@ #define LLVM_APINT_H #include "llvm/Support/DataTypes.h" +#include "llvm/Bitcode/SerializationFwd.h" #include <cassert> #include <string> @@ -203,6 +204,16 @@ public: /// @brief Destructor. ~APInt(); + + /// Default constructor that creates an uninitialized APInt. This is useful + /// for object deserialization (pair this with the static method Read). + explicit APInt() {} + + /// @brief Used by the Bitcode serializer to emit APInts to Bitcode. + void Emit(Serializer& S) const; + + /// @brief Used by the Bitcode deserializer to deserialize APInts. + void Read(Deserializer& D); /// @} /// @name Value Tests |