Mercurial > projects > ldc
view ir/irsymbol.h @ 174:16e676ae5ab4 trunk
[svn r190] Fixed array concatenation for some broken cases.
Added a sanity check for the Dsymbol state set.
author | lindquist |
---|---|
date | Tue, 06 May 2008 18:36:46 +0200 |
parents | db9890b3fb64 |
children | c44e6a711885 |
line wrap: on
line source
#ifndef LLVMDC_IR_IRSYMBOL_H #define LLVMDC_IR_IRSYMBOL_H #include <set> struct IrModule; struct IrFunction; struct IrStruct; struct IrGlobal; struct IrLocal; struct IrField; struct IrVar; struct Dsymbol; namespace llvm { struct Value; } struct IrDsymbol { static std::set<IrDsymbol*> list; static void resetAll(); // overload all of these to make sure // the static list is up to date IrDsymbol(); IrDsymbol(const IrDsymbol& s); ~IrDsymbol(); void reset(); Module* DModule; bool resolved; bool declared; bool initialized; bool defined; IrModule* irModule; IrStruct* irStruct; IrFunction* irFunc; IrGlobal* irGlobal; IrLocal* irLocal; IrField* irField; IrVar* getIrVar(); llvm::Value*& getIrValue(); }; #endif