mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 10:53:14 +01:00
Added -v-cg switch, which right now just prints "codegen: module.name (module/name.d)" to stdout, this can really help figuring out where, in some complex build command, things go wrong.
37 lines
519 B
C++
37 lines
519 B
C++
// 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() {}
|
|
};
|
|
|
|
class Ir
|
|
{
|
|
public:
|
|
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
|