Skip to content

Commit

Permalink
Remove some dead code.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174547 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
echristo committed Feb 6, 2013
1 parent 6c59c9f commit 231b83d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 34 deletions.
31 changes: 0 additions & 31 deletions lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2504,37 +2504,6 @@ CompileUnit *DwarfDebug::constructSkeletonCU(const MDNode *N) {
return NewCU;
}

void DwarfDebug::emitSkeletonCU(const MCSection *Section) {
Asm->OutStreamer.SwitchSection(Section);
DIE *Die = SkeletonCU->getCUDie();

// Emit the compile units header.
Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol(Section->getLabelBeginName(),
SkeletonCU->getUniqueID()));

// Emit size of content not including length itself
unsigned ContentSize = Die->getSize() +
sizeof(int16_t) + // DWARF version number
sizeof(int32_t) + // Offset Into Abbrev. Section
sizeof(int8_t); // Pointer Size (in bytes)

Asm->OutStreamer.AddComment("Length of Compilation Unit Info");
Asm->EmitInt32(ContentSize);
Asm->OutStreamer.AddComment("DWARF version number");
Asm->EmitInt16(dwarf::DWARF_VERSION);
Asm->OutStreamer.AddComment("Offset Into Abbrev. Section");

const MCSection *ASec = Asm->getObjFileLowering().getDwarfAbbrevSection();
Asm->EmitSectionOffset(Asm->GetTempSymbol(ASec->getLabelBeginName()),
DwarfAbbrevSectionSym);
Asm->OutStreamer.AddComment("Address Size (in bytes)");
Asm->EmitInt8(Asm->getDataLayout().getPointerSize());

emitDIE(Die, &SkeletonAbbrevs);
Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol(Section->getLabelEndName(),
SkeletonCU->getUniqueID()));
}

void DwarfDebug::emitSkeletonAbbrevs(const MCSection *Section) {
assert(useSplitDwarf() && "No split dwarf debug info?");
emitAbbrevs(Section, &SkeletonAbbrevs);
Expand Down
3 changes: 0 additions & 3 deletions lib/CodeGen/AsmPrinter/DwarfDebug.h
Original file line number Diff line number Diff line change
Expand Up @@ -527,9 +527,6 @@ class DwarfDebug {
/// section.
CompileUnit *constructSkeletonCU(const MDNode *);

/// \brief Emit the local split debug info section.
void emitSkeletonCU(const MCSection *);

/// \brief Emit the local split abbreviations.
void emitSkeletonAbbrevs(const MCSection *);

Expand Down

0 comments on commit 231b83d

Please sign in to comment.