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:
Elie Morisse 2018-08-19 14:07:50 -03:00 committed by Martin Kinkelin
parent 5c24f60cf9
commit 841146644b
6 changed files with 73 additions and 1 deletions

View file

@ -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