diff --git a/ir/ir.h b/ir/ir.h index ecf28dc7..fa20b998 100644 --- a/ir/ir.h +++ b/ir/ir.h @@ -23,11 +23,6 @@ struct IRState; struct IrFunction; -struct IrBase : Object -{ - virtual ~IrBase() {} -}; - class Ir { public: diff --git a/ir/irfunction.h b/ir/irfunction.h index fcc1082d..28573049 100644 --- a/ir/irfunction.h +++ b/ir/irfunction.h @@ -89,7 +89,7 @@ private: }; // represents a function -struct IrFunction : IrBase +struct IrFunction { // constructor IrFunction(FuncDeclaration* fd); diff --git a/ir/irfuncty.h b/ir/irfuncty.h index 0beac0cc..30c2cdf2 100644 --- a/ir/irfuncty.h +++ b/ir/irfuncty.h @@ -37,7 +37,7 @@ namespace llvm { // represents a function type argument // both explicit and implicit as well as return values -struct IrFuncTyArg : IrBase +struct IrFuncTyArg { /** This is the original D type as the frontend knows it * May NOT be rewritten!!! */ @@ -85,7 +85,7 @@ struct IrFuncTyArg : IrBase }; // represents a function type -struct IrFuncTy : IrBase +struct IrFuncTy { // return value IrFuncTyArg* ret; diff --git a/ir/irmodule.h b/ir/irmodule.h index 8fcd2d6e..e69545e2 100644 --- a/ir/irmodule.h +++ b/ir/irmodule.h @@ -19,7 +19,7 @@ struct Module; -struct IrModule : IrBase +struct IrModule { IrModule(Module* module, const char* srcfilename); virtual ~IrModule(); diff --git a/ir/irstruct.h b/ir/irstruct.h index 28c8f01d..7159149d 100644 --- a/ir/irstruct.h +++ b/ir/irstruct.h @@ -26,7 +26,7 @@ struct StructInitializer; // represents a struct or class // it is used during codegen to hold all the vital info we need -struct IrStruct : IrBase +struct IrStruct { /// Constructor. IrStruct(AggregateDeclaration* agg); diff --git a/ir/irvar.h b/ir/irvar.h index 8b12e8b3..50ab184a 100644 --- a/ir/irvar.h +++ b/ir/irvar.h @@ -24,7 +24,7 @@ struct IrFuncTyArg; -struct IrVar : IrBase +struct IrVar { IrVar(VarDeclaration* var);