mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-22 10:24:26 +00:00
Sink DwarfUnit::applySubprogramAttributesToDefinition into DwarfCompileUnit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221092 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1257,13 +1257,6 @@ DIE *DwarfUnit::getOrCreateSubprogramDIE(DISubprogram SP) {
|
||||
return &SPDie;
|
||||
}
|
||||
|
||||
void DwarfUnit::applySubprogramAttributesToDefinition(DISubprogram SP, DIE &SPDie) {
|
||||
DISubprogram SPDecl = SP.getFunctionDeclaration();
|
||||
DIScope Context = resolve(SPDecl ? SPDecl.getContext() : SP.getContext());
|
||||
applySubprogramAttributes(SP, SPDie);
|
||||
addGlobalName(SP.getName(), SPDie, Context);
|
||||
}
|
||||
|
||||
void DwarfUnit::applySubprogramAttributes(DISubprogram SP, DIE &SPDie) {
|
||||
DIE *DeclDie = nullptr;
|
||||
StringRef DeclLinkageName;
|
||||
|
Reference in New Issue
Block a user