Mercurial > projects > ldc
comparison gen/irstate.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 | 017ca8645a1f |
children | 2667e3a145be |
comparison
equal
deleted
inserted
replaced
945:03d7c4aac654 | 946:1714836f2c0b |
---|---|
45 this->enclosinghandler = enclosinghandler; | 45 this->enclosinghandler = enclosinghandler; |
46 this->isSwitch = isSwitch; | 46 this->isSwitch = isSwitch; |
47 } | 47 } |
48 | 48 |
49 ////////////////////////////////////////////////////////////////////////////////////////// | 49 ////////////////////////////////////////////////////////////////////////////////////////// |
50 IRState::IRState() | 50 IRState::IRState(llvm::Module* m) |
51 : module(m), difactory(*m) | |
51 { | 52 { |
52 interfaceInfoType = NULL; | 53 interfaceInfoType = NULL; |
53 mutexType = NULL; | 54 mutexType = NULL; |
54 moduleRefType = NULL; | 55 moduleRefType = NULL; |
55 | 56 |
56 dmodule = 0; | 57 dmodule = 0; |
57 module = 0; | |
58 emitMain = false; | 58 emitMain = false; |
59 mainFunc = 0; | 59 mainFunc = 0; |
60 ir.state = this; | 60 ir.state = this; |
61 asmBlock = NULL; | 61 asmBlock = NULL; |
62 | 62 |