Mercurial > projects > ldc
view ir/ir.h @ 1182:5e8f7ad442ba
Fix one more naked asm output problem for mingw32 and remove some
duplicate code
author | Kelly Wilson <wilsonk cpsc.ucalgary.ca> |
---|---|
date | Mon, 30 Mar 2009 18:22:30 -0600 |
parents | 3d1b16dabd25 |
children | 46f6365a50d7 |
line wrap: on
line source
// this head contains stuff used by all the IR #ifndef LDC_IR_IR_H #define LDC_IR_IR_H #include <deque> #include "ir/irforw.h" #include "root.h" struct IRState; struct IrFunction; struct IrBase : Object { virtual ~IrBase() {} }; struct Ir { Ir(); void setState(IRState* p) { irs = p; } IRState* getState() { return irs; } void addFunctionBody(IrFunction* f); void emitFunctionBodies(); private: IRState* irs; std::deque<IrFunction*> functionbodies; }; #endif