mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 02:45:25 +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
|
@ -11,6 +11,7 @@
|
|||
#include "declaration.h"
|
||||
#include "enum.h"
|
||||
#include "id.h"
|
||||
#include "import.h"
|
||||
#include "init.h"
|
||||
#include "nspace.h"
|
||||
#include "rmem.h"
|
||||
|
@ -50,6 +51,15 @@ public:
|
|||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void visit(Import *im) override {
|
||||
IF_LOG Logger::println("Import::codegen for %s", im->toPrettyChars());
|
||||
LOG_SCOPE
|
||||
|
||||
irs->DBuilder.EmitImport(im);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void visit(Nspace *ns) override {
|
||||
IF_LOG Logger::println("Nspace::codegen for %s", ns->toPrettyChars());
|
||||
LOG_SCOPE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue