mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-24 13:18:17 +00:00
Revert "DebugInfo: Move type units into the debug_types section with appropriate comdat grouping and type unit headers"
This reverts commit r197210. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197211 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -297,8 +297,10 @@ void DWARFContext::parseCompileUnits() {
|
||||
}
|
||||
|
||||
void DWARFContext::parseTypeUnits() {
|
||||
const TypeSectionMap &Sections = getTypesSections();
|
||||
for (TypeSectionMap::const_iterator I = Sections.begin(), E = Sections.end();
|
||||
const std::map<object::SectionRef, Section> &Sections = getTypesSections();
|
||||
for (std::map<object::SectionRef, Section>::const_iterator
|
||||
I = Sections.begin(),
|
||||
E = Sections.end();
|
||||
I != E; ++I) {
|
||||
uint32_t offset = 0;
|
||||
const DataExtractor &DIData =
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
#include "DWARFTypeUnit.h"
|
||||
#include "llvm/ADT/OwningPtr.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/ADT/MapVector.h"
|
||||
#include "llvm/DebugInfo/DIContext.h"
|
||||
|
||||
namespace llvm {
|
||||
@@ -139,9 +138,7 @@ public:
|
||||
virtual bool isLittleEndian() const = 0;
|
||||
virtual uint8_t getAddressSize() const = 0;
|
||||
virtual const Section &getInfoSection() = 0;
|
||||
typedef MapVector<object::SectionRef, Section,
|
||||
std::map<object::SectionRef, unsigned> > TypeSectionMap;
|
||||
virtual const TypeSectionMap &getTypesSections() = 0;
|
||||
virtual const std::map<object::SectionRef, Section> &getTypesSections() = 0;
|
||||
virtual StringRef getAbbrevSection() = 0;
|
||||
virtual const Section &getLocSection() = 0;
|
||||
virtual StringRef getARangeSection() = 0;
|
||||
@@ -182,7 +179,7 @@ class DWARFContextInMemory : public DWARFContext {
|
||||
bool IsLittleEndian;
|
||||
uint8_t AddressSize;
|
||||
Section InfoSection;
|
||||
TypeSectionMap TypesSections;
|
||||
std::map<object::SectionRef, Section> TypesSections;
|
||||
StringRef AbbrevSection;
|
||||
Section LocSection;
|
||||
StringRef ARangeSection;
|
||||
@@ -211,7 +208,9 @@ public:
|
||||
virtual bool isLittleEndian() const { return IsLittleEndian; }
|
||||
virtual uint8_t getAddressSize() const { return AddressSize; }
|
||||
virtual const Section &getInfoSection() { return InfoSection; }
|
||||
virtual const TypeSectionMap &getTypesSections() { return TypesSections; }
|
||||
virtual const std::map<object::SectionRef, Section> &getTypesSections() {
|
||||
return TypesSections;
|
||||
}
|
||||
virtual StringRef getAbbrevSection() { return AbbrevSection; }
|
||||
virtual const Section &getLocSection() { return LocSection; }
|
||||
virtual StringRef getARangeSection() { return ARangeSection; }
|
||||
|
||||
Reference in New Issue
Block a user