Describe the -gmlt optimization committed in the previous revision.

llvm-svn: 218099
This commit is contained in:
David Blaikie 2014-09-19 04:47:46 +00:00
parent 73b65d236c
commit 0b9438b1c1
1 changed files with 1 additions and 0 deletions

View File

@ -1482,6 +1482,7 @@ void DwarfUnit::applySubprogramAttributes(DISubprogram SP, DIE &SPDie) {
if (!SP.getName().empty())
addString(SPDie, dwarf::DW_AT_name, SP.getName());
// Skip the rest of the attributes under -gmlt to save space.
if(getCUNode().getEmissionKind() == DIBuilder::LineTablesOnly)
return;