Omit DW_AT_artificial, DW_AT_external, and similar attributes under -gmlt

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216789 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Blaikie 2014-08-29 22:05:29 +00:00
parent 0f155c19a5
commit a2fa271b36

View File

@ -1518,6 +1518,9 @@ void DwarfUnit::applySubprogramAttributes(DISubprogram SP, DIE &SPDie) {
constructSubprogramArguments(SPDie, Args);
}
if(getCUNode().getEmissionKind() == DIBuilder::LineTablesOnly)
return;
if (SP.isArtificial())
addFlag(SPDie, dwarf::DW_AT_artificial);