Type-size.cxx File Reference

#include <assert.h>
#include <stdint.h>
#include <stdlib.h>
#include <dirent.h>
#include <fstream>
#include <iostream>
#include <string>
#include <sstream>
#include <libsherpa/UExcept.hxx>
#include "AST.hxx"
#include "Type.hxx"
#include "machine-dep.hxx"

Go to the source code of this file.

Functions

static size_t calc_struct_size (const shared_ptr< Type > t)
static size_t calc_unin_size (const shared_ptr< Type > t)


Function Documentation

static size_t calc_struct_size ( const shared_ptr< Type t  )  [static]

Definition at line 57 of file Type-size.cxx.

References assert(), at_field, at_fill, at_methdecl, FLD_IS_DISCM, and boost::GC_NULL.

Referenced by calc_unin_size(), and Type::size().

static size_t calc_unin_size ( const shared_ptr< Type t  )  [static]

Definition at line 120 of file Type-size.cxx.

References assert(), calc_struct_size(), CARDELLI_UN, ctr, ENUM_UN, max(), SINGLE_LEG_UN, and UNION_IS_REPR.

Referenced by Type::size().


Generated on Thu May 17 23:59:16 2012 for BitC Compiler by  doxygen 1.4.7