mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-20 23:03:14 +01: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:
@@ -18,7 +18,6 @@
|
||||
#include "gen/llvm.h"
|
||||
#include "gen/llvmhelpers.h"
|
||||
#include "gen/logger.h"
|
||||
#include "gen/todebug.h"
|
||||
#include "gen/tollvm.h"
|
||||
#include "ir/ir.h"
|
||||
#include "ir/irtype.h"
|
||||
@@ -190,7 +189,7 @@ void VarDeclaration::codegen(Ir* p)
|
||||
gvar->setInitializer(initVal);
|
||||
|
||||
// Also set up the edbug info.
|
||||
DtoDwarfGlobalVariable(gvar, this);
|
||||
gIR->DBuilder.EmitGlobalVariable(gvar, this);
|
||||
}
|
||||
|
||||
// Set the alignment (it is important not to use type->alignsize because
|
||||
|
||||
Reference in New Issue
Block a user