LLVM API Documentation

DeserializeAPFloat.cpp

Go to the documentation of this file.
00001 //===-- SerializeAPInt.cpp - Serialization for APFloat ---------*- C++ -*--===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 //
00010 // This file implements deserialization of APFloat.
00011 //
00012 //===----------------------------------------------------------------------===//
00013 
00014 #include "llvm/ADT/APFloat.h"
00015 #include "llvm/Bitcode/Deserialize.h"
00016 
00017 using namespace llvm;
00018 
00019 APFloat APFloat::ReadVal(Deserializer& D) {
00020   APInt x;
00021   D.Read(x);
00022   return APFloat(x);
00023 }
00024