mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-22 10:24:26 +00:00
Remove the last mention of LineTablesOnly from DwarfUnit, sinking it into DwarfCompileUnit
This is a useful distinction/invariant/delination to make because LineTablesOnly mode is never relevant to type units, so it's clear that we're not doing weird line-tables-only-with-types by making this API choice. It also lays the foundations nicely for adding gmlt-like data to fission skeleton CUs while limiting the effects to CUs and not TUs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221093 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1257,7 +1257,8 @@ DIE *DwarfUnit::getOrCreateSubprogramDIE(DISubprogram SP) {
|
||||
return &SPDie;
|
||||
}
|
||||
|
||||
void DwarfUnit::applySubprogramAttributes(DISubprogram SP, DIE &SPDie) {
|
||||
void DwarfUnit::applySubprogramAttributes(DISubprogram SP, DIE &SPDie,
|
||||
bool Minimal) {
|
||||
DIE *DeclDie = nullptr;
|
||||
StringRef DeclLinkageName;
|
||||
if (DISubprogram SPDecl = SP.getFunctionDeclaration()) {
|
||||
@ -1292,7 +1293,7 @@ void DwarfUnit::applySubprogramAttributes(DISubprogram SP, DIE &SPDie) {
|
||||
addString(SPDie, dwarf::DW_AT_name, SP.getName());
|
||||
|
||||
// Skip the rest of the attributes under -gmlt to save space.
|
||||
if(getCUNode().getEmissionKind() == DIBuilder::LineTablesOnly)
|
||||
if (Minimal)
|
||||
return;
|
||||
|
||||
addSourceLine(SPDie, SP);
|
||||
|
Reference in New Issue
Block a user