180bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru//===-- llvm/ADT/APSInt.cpp - Arbitrary Precision Signed Int ---*- C++ -*--===// 280bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru// 380bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru// The LLVM Compiler Infrastructure 480bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru// 580bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru// This file is distributed under the University of Illinois Open Source 680bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru// License. See LICENSE.TXT for details. 780bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru// 880bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru//===----------------------------------------------------------------------===// 980bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru// 1080bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru// This file implements the APSInt class, which is a simple class that 1180bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru// represents an arbitrary sized integer that knows its signedness. 1280bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru// 1380bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru//===----------------------------------------------------------------------===// 14363e546ed626b6dbbc42f5db87b3594bc0b5944bDerek Sollenberger 1580bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru#include "llvm/ADT/APSInt.h" 1680bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru#include "llvm/ADT/FoldingSet.h" 1780bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru 1880bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queruusing namespace llvm; 1980bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru 2080bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queruvoid APSInt::Profile(FoldingSetNodeID& ID) const { 2180bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru ID.AddInteger((unsigned) (IsUnsigned ? 1 : 0)); 2280bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru APInt::Profile(ID); 23363e546ed626b6dbbc42f5db87b3594bc0b5944bDerek Sollenberger} 2480bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru