view ir/irtype.h @ 435:74101be2a553

Added type param to DVarValue as DMD sometimes overrides the type of the VarDeclaration. Added support for align(1)/packed structs, other alignments are still ignored. Fixed some problems with accessing lazy arguments.
author Tomas Lindquist Olsen <>
date Wed, 30 Jul 2008 10:12:55 +0200
parents 8ee2c46ff938
children eef8ac26c66c
line wrap: on
line source


#include <set>

namespace llvm {
    class PATypeHolder;

struct IrType
    static std::set<IrType*> list;
    static void resetAll();

    // overload all of these to make sure
    // the static list is up to date
    IrType(const IrType& s);

    void reset();

    llvm::PATypeHolder* type;
    llvm::PATypeHolder* vtblType;