summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-11-01 23:59:23 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-11-01 23:59:23 +0000
commitae57e66e36914f902e63f3ec31181ef94ef44043 (patch)
tree0932a4ef89157f82685ffb55515f62cb6586fdae /llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp
parent4729c78bc01c7ed4d23d4781f99e915524266604 (diff)
downloadbcm5719-llvm-ae57e66e36914f902e63f3ec31181ef94ef44043.tar.gz
bcm5719-llvm-ae57e66e36914f902e63f3ec31181ef94ef44043.zip
Sink dwarf unit length emission down into DwarfUnit::emitHeader
This allows the CU label to be emitted only for compile units, as they're the only ones that need it (so they can be referenced from pubnames) llvm-svn: 221072
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp
index 89d38a2e3ae..50180ea0a16 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp
@@ -55,13 +55,6 @@ void DwarfFile::emitUnits(const MCSymbol *ASectionSym) {
const MCSection *USection = TheU->getSection();
Asm->OutStreamer.SwitchSection(USection);
- // Emit the compile units header.
- Asm->OutStreamer.EmitLabel(TheU->getLabelBegin());
-
- // Emit size of content not including length itself
- Asm->OutStreamer.AddComment("Length of Unit");
- Asm->EmitInt32(TheU->getHeaderSize() + Die.getSize());
-
TheU->emitHeader(ASectionSym);
DD.emitDIE(Die);
OpenPOWER on IntegriCloud