comparison 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
comparison
equal deleted inserted replaced
945:03d7c4aac654 946:1714836f2c0b
31 31
32 IrStruct::IrStruct(AggregateDeclaration* aggr) 32 IrStruct::IrStruct(AggregateDeclaration* aggr)
33 : initOpaque(llvm::OpaqueType::get()), 33 : initOpaque(llvm::OpaqueType::get()),
34 classInfoOpaque(llvm::OpaqueType::get()), 34 classInfoOpaque(llvm::OpaqueType::get()),
35 vtblTy(llvm::OpaqueType::get()), 35 vtblTy(llvm::OpaqueType::get()),
36 vtblInitTy(llvm::OpaqueType::get()) 36 vtblInitTy(llvm::OpaqueType::get()),
37 diCompositeType(NULL)
37 { 38 {
38 aggrdecl = aggr; 39 aggrdecl = aggr;
39 defaultFound = false; 40 defaultFound = false;
40 anon = NULL; 41 anon = NULL;
41 index = 0; 42 index = 0;
55 constClassInfo = NULL; 56 constClassInfo = NULL;
56 classInfoDeclared = false; 57 classInfoDeclared = false;
57 classInfoDefined = false; 58 classInfoDefined = false;
58 59
59 packed = false; 60 packed = false;
60
61 dwarfComposite = NULL;
62 } 61 }
63 62
64 IrStruct::~IrStruct() 63 IrStruct::~IrStruct()
65 { 64 {
66 } 65 }