view ir/ir.h @ 1147:dbe4af57b240

Changed use of toObjFile to a new codegen method. More versioning of DMD specific codegen code.
author Tomas Lindquist Olsen <tomas.l.olsen>
date Fri, 27 Mar 2009 17:54:27 +0100
parents eef8ac26c66c
children 3d1b16dabd25
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 "ir/irforw.h"
#include "root.h"

struct IRState;

struct IrBase : Object
    virtual ~IrBase() {}

struct Ir
    Ir() : irs(NULL) {}

    void setState(IRState* p)   { irs = p; }
    IRState* getState()         { return irs; }

    IRState* irs;