Mercurial > projects > ldc
comparison ir/irmodule.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 | b411c41a9716 |
children | ad7f2f1862d6 |
comparison
equal
deleted
inserted
replaced
945:03d7c4aac654 | 946:1714836f2c0b |
---|---|
8 M = module; | 8 M = module; |
9 | 9 |
10 LLConstant* slice = DtoConstString(srcfilename); | 10 LLConstant* slice = DtoConstString(srcfilename); |
11 fileName = new llvm::GlobalVariable( | 11 fileName = new llvm::GlobalVariable( |
12 slice->getType(), true, LLGlobalValue::InternalLinkage, slice, ".modulefilename", gIR->module); | 12 slice->getType(), true, LLGlobalValue::InternalLinkage, slice, ".modulefilename", gIR->module); |
13 | |
14 dwarfCompileUnit = NULL; | |
15 } | 13 } |
16 | 14 |
17 IrModule::~IrModule() | 15 IrModule::~IrModule() |
18 { | 16 { |
19 } | 17 } |