mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
28 lines
371 B
C++
28 lines
371 B
C++
// 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; }
|
|
|
|
private:
|
|
IRState* irs;
|
|
};
|
|
|
|
#endif
|