mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 17:11:44 +03:00
Debug info: emit llvm::DIModule and llvm::DIImportedEntity for modules and imports
Matches GDC's DWARF output and enables access to global and imported symbols from GDB.
This commit is contained in:
parent
5c24f60cf9
commit
841146644b
6 changed files with 73 additions and 1 deletions
|
@ -656,6 +656,8 @@ void codegenModule(IRState *irs, Module *m) {
|
|||
assert(!gIR && "gIR not null, codegen already in progress?!");
|
||||
gIR = irs;
|
||||
|
||||
irs->DBuilder.EmitModule(m);
|
||||
|
||||
initRuntime();
|
||||
|
||||
// Skip pseudo-modules for coverage analysis
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue