From 4512201de579e009cb12f69ed87d7bc0f49180a9 Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Sat, 15 Dec 2012 22:31:19 +0100 Subject: [PATCH] Removed obsolete IrSymbol class. --- dmd/dsymbol.c | 2 -- dmd/dsymbol.h | 2 -- dmd2/dsymbol.c | 2 -- dmd2/dsymbol.h | 2 -- ir/irsymbol.cpp | 1 - ir/irsymbol.h | 21 --------------------- 6 files changed, 30 deletions(-) delete mode 100644 ir/irsymbol.cpp delete mode 100644 ir/irsymbol.h diff --git a/dmd/dsymbol.c b/dmd/dsymbol.c index fe727ab5..6b60124f 100644 --- a/dmd/dsymbol.c +++ b/dmd/dsymbol.c @@ -53,7 +53,6 @@ Dsymbol::Dsymbol() this->errors = false; #if IN_LLVM this->llvmInternal = LLVMnone; - this->irsym = NULL; #endif } @@ -73,7 +72,6 @@ Dsymbol::Dsymbol(Identifier *ident) this->errors = false; #if IN_LLVM this->llvmInternal = LLVMnone; - this->irsym = NULL; #endif } diff --git a/dmd/dsymbol.h b/dmd/dsymbol.h index 77c03810..4c5a4538 100644 --- a/dmd/dsymbol.h +++ b/dmd/dsymbol.h @@ -97,7 +97,6 @@ struct Classsym; #if IN_LLVM class Ir; -class IrSymbol; namespace llvm { class Value; @@ -284,7 +283,6 @@ struct Dsymbol : Object int llvmInternal; IrDsymbol ir; - IrSymbol* irsym; #endif }; diff --git a/dmd2/dsymbol.c b/dmd2/dsymbol.c index fdc799ed..2228feb5 100644 --- a/dmd2/dsymbol.c +++ b/dmd2/dsymbol.c @@ -54,7 +54,6 @@ Dsymbol::Dsymbol() #if IN_LLVM this->llvmInternal = LLVMnone; - this->irsym = NULL; #endif } @@ -75,7 +74,6 @@ Dsymbol::Dsymbol(Identifier *ident) #if IN_LLVM this->llvmInternal = LLVMnone; - this->irsym = NULL; #endif } diff --git a/dmd2/dsymbol.h b/dmd2/dsymbol.h index 47f97f2a..28b3fa60 100644 --- a/dmd2/dsymbol.h +++ b/dmd2/dsymbol.h @@ -99,7 +99,6 @@ struct TYPE; #if IN_LLVM class Ir; -class IrSymbol; namespace llvm { class Value; @@ -290,7 +289,6 @@ struct Dsymbol : Object int llvmInternal; IrDsymbol ir; - IrSymbol* irsym; #endif }; diff --git a/ir/irsymbol.cpp b/ir/irsymbol.cpp deleted file mode 100644 index 2df8f06e..00000000 --- a/ir/irsymbol.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "ir/irsymbol.h" diff --git a/ir/irsymbol.h b/ir/irsymbol.h deleted file mode 100644 index ffa609fa..00000000 --- a/ir/irsymbol.h +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef __LDC_IR_IRSYMBOL_H__ -#define __LDC_IR_IRSYMBOL_H__ - -#include "ir/ir.h" - -/// Base class for all symbols. -class IrSymbol -{ -public: - /// - IrSymbol(Ir* ir) : ir(ir) {} - - /// Migrate symbols to current module if necessary. - virtual void migrate() = 0; - -protected: - /// - Ir* ir; -}; - -#endif