mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 00:20:25 +00:00
Sink DwarfUnit::SectionSym into DwarfCompileUnit as it's only needed/used there.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221062 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -36,6 +36,9 @@ class DwarfCompileUnit : public DwarfUnit {
|
||||
/// Skeleton unit associated with this unit.
|
||||
DwarfCompileUnit *Skeleton;
|
||||
|
||||
/// A label at the start of the non-dwo section related to this unit.
|
||||
MCSymbol *SectionSym;
|
||||
|
||||
/// \brief Construct a DIE for the given DbgVariable without initializing the
|
||||
/// DbgVariable's DIE reference.
|
||||
std::unique_ptr<DIE> constructVariableDIEImpl(const DbgVariable &DV,
|
||||
@@ -156,6 +159,20 @@ public:
|
||||
|
||||
/// Set the skeleton unit associated with this unit.
|
||||
void setSkeleton(DwarfCompileUnit &Skel) { Skeleton = &Skel; }
|
||||
|
||||
MCSymbol *getSectionSym() const {
|
||||
assert(Section);
|
||||
return SectionSym;
|
||||
}
|
||||
|
||||
/// Pass in the SectionSym even though we could recreate it in every compile
|
||||
/// unit (type units will have actually distinct symbols once they're in
|
||||
/// comdat sections).
|
||||
void initSection(const MCSection *Section, MCSymbol *SectionSym) {
|
||||
DwarfUnit::initSection(Section);
|
||||
this->SectionSym = SectionSym;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
} // end llvm namespace
|
||||
|
||||
Reference in New Issue
Block a user