summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-11-02 08:18:06 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-11-02 08:18:06 +0000
commit279c451c0bf0be07255c152bd78f952641b158c4 (patch)
tree027e132cbfd60c1141d30bf17d7e7f4425317b26 /llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
parent3363a57c8e816473a409e208b87df59de1014abe (diff)
downloadbcm5719-llvm-279c451c0bf0be07255c152bd78f952641b158c4.tar.gz
bcm5719-llvm-279c451c0bf0be07255c152bd78f952641b158c4.zip
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. llvm-svn: 221093
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index c691a2c261b..485ea34dc5c 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
@@ -832,7 +832,8 @@ void DwarfCompileUnit::applySubprogramAttributesToDefinition(DISubprogram SP,
DIE &SPDie) {
DISubprogram SPDecl = SP.getFunctionDeclaration();
DIScope Context = resolve(SPDecl ? SPDecl.getContext() : SP.getContext());
- applySubprogramAttributes(SP, SPDie);
+ applySubprogramAttributes(SP, SPDie, getCUNode().getEmissionKind() ==
+ DIBuilder::LineTablesOnly);
addGlobalName(SP.getName(), SPDie, Context);
}
} // end llvm namespace
OpenPOWER on IntegriCloud