1 //===-- SerializeAPInt.cpp - Serialization for APInts ----------*- C++ -*--===//
3 // The LLVM Compiler Infrastructure
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.
8 //===----------------------------------------------------------------------===//
10 // This file implements serialization of APInts.
12 //===----------------------------------------------------------------------===//
14 #include "llvm/ADT/APInt.h"
15 #include "llvm/Bitcode/Serialize.h"
20 void APInt::Emit(Serializer& S) const {
26 uint32_t NumWords = getNumWords();
28 for (unsigned i = 0; i < NumWords; ++i)