LLVM API Documentation

APSInt.cpp
Go to the documentation of this file.
00001 //===-- llvm/ADT/APSInt.cpp - Arbitrary Precision Signed Int ---*- 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 the APSInt class, which is a simple class that
00011 // represents an arbitrary sized integer that knows its signedness.
00012 //
00013 //===----------------------------------------------------------------------===//
00014 
00015 #include "llvm/ADT/APSInt.h"
00016 #include "llvm/ADT/FoldingSet.h"
00017 
00018 using namespace llvm;
00019 
00020 void APSInt::Profile(FoldingSetNodeID& ID) const {
00021   ID.AddInteger((unsigned) (IsUnsigned ? 1 : 0));
00022   APInt::Profile(ID);
00023 }