Skip to content

Commit 6ac4451

Browse files
committed
Skip over templates when generating scope debug infos.
1 parent 896a263 commit 6ac4451

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/d/llvm/debuginfo.d

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,23 @@ struct DebugInfoScopeGen {
389389
LLVMMetadataReplaceAllUsesWith(tmp, ret);
390390
return ret;
391391
}
392+
393+
/**
394+
* FIXME: Various placeholder for symbols that are not implemented.
395+
*/
396+
LLVMMetadataRef visit(Template t) {
397+
// FIXME: Generate debug infos for the template.
398+
// At the moment, ldc doesn't generate anything,
399+
// so it is fine not to.
400+
return visit(t.getParentScope());
401+
}
402+
403+
LLVMMetadataRef visit(TemplateInstance i) {
404+
// FIXME: Generate debug infos for the template instance.
405+
// At the moment, ldc doesn't generate anything,
406+
// so it is fine not to.
407+
return visit(i.getParentScope());
408+
}
392409
}
393410

394411
struct DebugInfoTypeGen {

0 commit comments

Comments
 (0)