diff ir/irstruct.cpp @ 946:1714836f2c0b

Mostly rewrite debug info generation in terms of llvm/Analysis/DebugInfo.h. Add getCompilationModule to Dsymbol and fix template compile unit decision code. Runtime compiles with -g again.
author Christian Kamm <kamm incasoftware de>
date Sun, 08 Feb 2009 16:50:22 +0100
parents 03d7c4aac654
children 79758fd2f48a
line wrap: on
line diff
--- a/ir/irstruct.cpp	Sun Feb 08 05:26:54 2009 +0100
+++ b/ir/irstruct.cpp	Sun Feb 08 16:50:22 2009 +0100
@@ -33,7 +33,8 @@
 :   initOpaque(llvm::OpaqueType::get()),
     classInfoOpaque(llvm::OpaqueType::get()),
     vtblTy(llvm::OpaqueType::get()),
-    vtblInitTy(llvm::OpaqueType::get())
+    vtblInitTy(llvm::OpaqueType::get()),
+    diCompositeType(NULL)
 {
     aggrdecl = aggr;
     defaultFound = false;
@@ -57,8 +58,6 @@
     classInfoDefined = false;
 
     packed = false;
-
-    dwarfComposite = NULL;
 }
 
 IrStruct::~IrStruct()