mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-29 06:30:39 +03:00
Introduce a debug info builder.
Moves all code from todebug into a new class. Also caches the compilation unit in order to fix a LLVM 3.4 compile error.
This commit is contained in:
parent
4e8acf7eb6
commit
c28c7fb134
14 changed files with 521 additions and 493 deletions
|
@ -35,7 +35,6 @@
|
|||
#include "gen/dvalue.h"
|
||||
#include "gen/tollvm.h"
|
||||
#include "gen/logger.h"
|
||||
#include "gen/todebug.h"
|
||||
#include "gen/llvmhelpers.h"
|
||||
#include "gen/functions.h"
|
||||
|
||||
|
@ -230,7 +229,7 @@ AsmStatement::toIR(IRState * irs)
|
|||
assert(asmblock);
|
||||
|
||||
// debug info
|
||||
DtoDwarfStopPoint(loc.linnum);
|
||||
gIR->DBuilder.EmitStopPoint(loc.linnum);
|
||||
|
||||
if (!asmcode)
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue