diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-12-11 22:08:39 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-12-11 22:08:39 +0000 |
commit | 727747eb29baaf61c5058bae7d9f6c8fa350b96f (patch) | |
tree | 0e9f90be9abeec0aa7ec7ea580476b9aca38871d /llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h | |
parent | 7746736ece01cf363112c8583975ac9397ee5826 (diff) | |
download | bcm5719-llvm-727747eb29baaf61c5058bae7d9f6c8fa350b96f.tar.gz bcm5719-llvm-727747eb29baaf61c5058bae7d9f6c8fa350b96f.zip |
Revert "DebugInfo: Move type units into the debug_types section with appropriate comdat grouping and type unit headers"
This reverts commit r197073.
The test seems to be failing on some buildbots for unknown reasons.
Reverting until I can figure that out. If anyone's got a reproduction
(.s and .o together would be great) - I'd really appreciate it.
llvm-svn: 197079
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h index 6242a058cf8..26b5f09004e 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h @@ -413,15 +413,14 @@ public: /// Compute the size of a header for this unit, not including the initial /// length field. - virtual unsigned getHeaderSize() const { + unsigned getHeaderSize() const { return sizeof(int16_t) + // DWARF version number sizeof(int32_t) + // Offset Into Abbrev. Section sizeof(int8_t); // Pointer Size (in bytes) } /// Emit the header for this unit, not including the initial length field. - virtual void emitHeader(const MCSection *ASection, - const MCSymbol *ASectionSym) const; + void emitHeader(const MCSection *ASection, const MCSymbol *ASectionSym) const; protected: /// getOrCreateStaticMemberDIE - Create new static data member DIE. @@ -514,25 +513,12 @@ public: class DwarfTypeUnit : public DwarfUnit { private: uint16_t Language; - uint64_t TypeSignature; - const DIE *Ty; public: DwarfTypeUnit(unsigned UID, DIE *D, uint16_t Language, AsmPrinter *A, DwarfDebug *DW, DwarfFile *DWU); - void setTypeSignature(uint64_t Signature) { TypeSignature = Signature; } - void setType(const DIE *Ty) { this->Ty = Ty; } - uint16_t getLanguage() const LLVM_OVERRIDE { return Language; } - /// Emit the header for this unit, not including the initial length field. - void emitHeader(const MCSection *ASection, const MCSymbol *ASectionSym) const - LLVM_OVERRIDE; - unsigned getHeaderSize() const LLVM_OVERRIDE { - return DwarfUnit::getHeaderSize() + sizeof(uint64_t) + // Type Signature - sizeof(uint32_t); // Type DIE Offset - } - void initSection(const MCSection *Section); }; } // end llvm namespace #endif |