diff gen/typinf.cpp @ 1146:1860414bf3b7

* Moved ir/irsymbol.cpp/h into ir/irdsymbol.cpp/h. * Added #if IN_DMD versioning around DMD backend specific code in the D1 frontend, D2 is currently broken. * All part of a greater cleanup scheme.
author Tomas Lindquist Olsen <tomas.l.olsen gmail.com>
date Thu, 26 Mar 2009 20:45:53 +0100
parents f0b6549055ab
children dbe4af57b240
line wrap: on
line diff
--- a/gen/typinf.cpp	Thu Mar 26 18:46:21 2009 +0100
+++ b/gen/typinf.cpp	Thu Mar 26 20:45:53 2009 +0100
@@ -352,11 +352,6 @@
 
 /* ========================================================================= */
 
-void TypeInfoDeclaration::toDt(dt_t **pdt)
-{
-    assert(0 && "TypeInfoDeclaration::toDt");
-}
-
 void TypeInfoDeclaration::llvmDeclare()
 {
     assert(0 && "TypeInfoDeclaration::llvmDeclare");
@@ -438,11 +433,6 @@
     isaGlobalVar(ir.irGlobal->value)->setInitializer(tiInit);
 }
 
-void TypeInfoTypedefDeclaration::toDt(dt_t **pdt)
-{
-    assert(0);
-}
-
 /* ========================================================================= */
 
 void TypeInfoEnumDeclaration::llvmDeclare()
@@ -516,11 +506,6 @@
     isaGlobalVar(ir.irGlobal->value)->setInitializer(tiInit);
 }
 
-void TypeInfoEnumDeclaration::toDt(dt_t **pdt)
-{
-    assert(0);
-}
-
 /* ========================================================================= */
 
 static void LLVM_D_Declare_TypeInfoBase(TypeInfoDeclaration* tid, ClassDeclaration* cd)
@@ -582,11 +567,6 @@
     LLVM_D_Define_TypeInfoBase(tc->next, this, Type::typeinfopointer);
 }
 
-void TypeInfoPointerDeclaration::toDt(dt_t **pdt)
-{
-    assert(0);
-}
-
 /* ========================================================================= */
 
 void TypeInfoArrayDeclaration::llvmDeclare()
@@ -611,16 +591,11 @@
     LLVM_D_Define_TypeInfoBase(tc->next, this, Type::typeinfoarray);
 }
 
-void TypeInfoArrayDeclaration::toDt(dt_t **pdt)
-{
-    assert(0);
-}
-
 /* ========================================================================= */
 
 void TypeInfoStaticArrayDeclaration::llvmDeclare()
 {
-    Logger::println("TypeInfoStaticArrayDeclaration::toDt() %s", toChars());
+    Logger::println("TypeInfoStaticArrayDeclaration::llvmDeclare() %s", toChars());
     LOG_SCOPE;
 
     // init typeinfo class
@@ -633,7 +608,7 @@
 
 void TypeInfoStaticArrayDeclaration::llvmDefine()
 {
-    Logger::println("TypeInfoStaticArrayDeclaration::toDt() %s", toChars());
+    Logger::println("TypeInfoStaticArrayDeclaration::llvmDefine() %s", toChars());
     LOG_SCOPE;
 
     // init typeinfo class
@@ -671,16 +646,11 @@
     isaGlobalVar(ir.irGlobal->value)->setInitializer(tiInit);
 }
 
-void TypeInfoStaticArrayDeclaration::toDt(dt_t **pdt)
-{
-    assert(0);
-}
-
 /* ========================================================================= */
 
 void TypeInfoAssociativeArrayDeclaration::llvmDeclare()
 {
-    Logger::println("TypeInfoAssociativeArrayDeclaration::toDt() %s", toChars());
+    Logger::println("TypeInfoAssociativeArrayDeclaration::llvmDeclare() %s", toChars());
     LOG_SCOPE;
 
     // init typeinfo class
@@ -693,7 +663,7 @@
 
 void TypeInfoAssociativeArrayDeclaration::llvmDefine()
 {
-    Logger::println("TypeInfoAssociativeArrayDeclaration::toDt() %s", toChars());
+    Logger::println("TypeInfoAssociativeArrayDeclaration::llvmDefine() %s", toChars());
     LOG_SCOPE;
 
     // init typeinfo class
@@ -730,16 +700,11 @@
     isaGlobalVar(ir.irGlobal->value)->setInitializer(tiInit);
 }
 
-void TypeInfoAssociativeArrayDeclaration::toDt(dt_t **pdt)
-{
-    assert(0);
-}
-
 /* ========================================================================= */
 
 void TypeInfoFunctionDeclaration::llvmDeclare()
 {
-    Logger::println("TypeInfoFunctionDeclaration::toDt() %s", toChars());
+    Logger::println("TypeInfoFunctionDeclaration::llvmDeclare() %s", toChars());
     LOG_SCOPE;
 
     assert(tinfo->ty == Tfunction);
@@ -750,7 +715,7 @@
 
 void TypeInfoFunctionDeclaration::llvmDefine()
 {
-    Logger::println("TypeInfoFunctionDeclaration::toDt() %s", toChars());
+    Logger::println("TypeInfoFunctionDeclaration::llvmDefine() %s", toChars());
     LOG_SCOPE;
 
     assert(tinfo->ty == Tfunction);
@@ -759,16 +724,11 @@
     LLVM_D_Define_TypeInfoBase(tc->next, this, Type::typeinfofunction);
 }
 
-void TypeInfoFunctionDeclaration::toDt(dt_t **pdt)
-{
-    assert(0);
-}
-
 /* ========================================================================= */
 
 void TypeInfoDelegateDeclaration::llvmDeclare()
 {
-    Logger::println("TypeInfoDelegateDeclaration::toDt() %s", toChars());
+    Logger::println("TypeInfoDelegateDeclaration::llvmDeclare() %s", toChars());
     LOG_SCOPE;
 
     assert(tinfo->ty == Tdelegate);
@@ -779,7 +739,7 @@
 
 void TypeInfoDelegateDeclaration::llvmDefine()
 {
-    Logger::println("TypeInfoDelegateDeclaration::toDt() %s", toChars());
+    Logger::println("TypeInfoDelegateDeclaration::llvmDefine() %s", toChars());
     LOG_SCOPE;
 
     assert(tinfo->ty == Tdelegate);
@@ -788,11 +748,6 @@
     LLVM_D_Define_TypeInfoBase(tc->nextOf()->nextOf(), this, Type::typeinfodelegate);
 }
 
-void TypeInfoDelegateDeclaration::toDt(dt_t **pdt)
-{
-    assert(0);
-}
-
 /* ========================================================================= */
 
 void TypeInfoStructDeclaration::llvmDeclare()
@@ -1007,11 +962,6 @@
     isaGlobalVar(ir.irGlobal->value)->setInitializer(tiInit);
 }
 
-void TypeInfoStructDeclaration::toDt(dt_t **pdt)
-{
-    assert(0);
-}
-
 /* ========================================================================= */
 
 void TypeInfoClassDeclaration::llvmDeclare()
@@ -1063,11 +1013,6 @@
     isaGlobalVar(ir.irGlobal->value)->setInitializer(tiInit);
 }
 
-void TypeInfoClassDeclaration::toDt(dt_t **pdt)
-{
-    assert(0);
-}
-
 /* ========================================================================= */
 
 void TypeInfoInterfaceDeclaration::llvmDeclare()
@@ -1121,11 +1066,6 @@
     isaGlobalVar(ir.irGlobal->value)->setInitializer(tiInit);
 }
 
-void TypeInfoInterfaceDeclaration::toDt(dt_t **pdt)
-{
-    assert(0);
-}
-
 /* ========================================================================= */
 
 void TypeInfoTupleDeclaration::llvmDeclare()
@@ -1208,18 +1148,13 @@
     isaGlobalVar(ir.irGlobal->value)->setInitializer(tiInit);
 }
 
-void TypeInfoTupleDeclaration::toDt(dt_t **pdt)
-{
-    assert(0);
-}
-
 /* ========================================================================= */
 
 #if DMDV2
 
 void TypeInfoConstDeclaration::llvmDeclare()
 {
-    Logger::println("TypeInfoConstDeclaration::toDt() %s", toChars());
+    Logger::println("TypeInfoConstDeclaration::llvmDeclare() %s", toChars());
     LOG_SCOPE;
 
     LLVM_D_Declare_TypeInfoBase(this, Type::typeinfoconst);
@@ -1227,7 +1162,7 @@
 
 void TypeInfoConstDeclaration::llvmDefine()
 {
-    Logger::println("TypeInfoConstDeclaration::toDt() %s", toChars());
+    Logger::println("TypeInfoConstDeclaration::llvmDefine() %s", toChars());
     LOG_SCOPE;
 
     Type *tm = tinfo->mutableOf();
@@ -1236,18 +1171,11 @@
     LLVM_D_Define_TypeInfoBase(tm, this, Type::typeinfoconst);
 }
 
-void TypeInfoConstDeclaration::toDt(dt_t **pdt)
-{
-    assert(0);
-}
-
-///////////////////////////////////////////////////////////
-
 /* ========================================================================= */
 
 void TypeInfoInvariantDeclaration::llvmDeclare()
 {
-    Logger::println("TypeInfoInvariantDeclaration::toDt() %s", toChars());
+    Logger::println("TypeInfoInvariantDeclaration::llvmDeclare() %s", toChars());
     LOG_SCOPE;
 
     LLVM_D_Declare_TypeInfoBase(this, Type::typeinfoinvariant);
@@ -1255,7 +1183,7 @@
 
 void TypeInfoInvariantDeclaration::llvmDefine()
 {
-    Logger::println("TypeInfoInvariantDeclaration::toDt() %s", toChars());
+    Logger::println("TypeInfoInvariantDeclaration::llvmDefine() %s", toChars());
     LOG_SCOPE;
 
     Type *tm = tinfo->mutableOf();
@@ -1264,9 +1192,4 @@
     LLVM_D_Define_TypeInfoBase(tm, this, Type::typeinfoinvariant);
 }
 
-void TypeInfoInvariantDeclaration::toDt(dt_t **pdt)
-{
-    assert(0);
-}
-
 #endif