aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Bitcode/Reader/DeserializeAPFloat.cpp
blob: ee24b681f026f6f219448fcdd4a41faadd64e0e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//===-- SerializeAPInt.cpp - Serialization for APFloat ---------*- C++ -*--===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file implements deserialization of APFloat.
//
//===----------------------------------------------------------------------===//

#include "llvm/ADT/APFloat.h"
#include "llvm/Bitcode/Deserialize.h"

using namespace llvm;

APFloat APFloat::ReadVal(Deserializer& D) {
  APInt x;
  D.Read(x);
  return APFloat(x);
}