Ted Kremenek | c47dfdd | 2007-11-07 18:39:22 +0000 | [diff] [blame^] | 1 | //===-- SerializeAPInt.cpp - Serialization for APFloat ---------*- C++ -*--===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file was developed by Ted Kremenek and is distributed under the |
| 6 | // University of Illinois Open Source License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file implements deserialization of APFloat. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #include "llvm/ADT/APFloat.h" |
| 15 | #include "llvm/Bitcode/Deserialize.h" |
| 16 | |
| 17 | using namespace llvm; |
| 18 | |
| 19 | APFloat APFloat::ReadVal(Deserializer& D) { |
| 20 | APInt x; |
| 21 | D.Read(x); |
| 22 | return APFloat(x); |
| 23 | } |
| 24 | |