mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-21 03:32:21 +00:00
Make DWARFUnitSection final and change base class to non-virtual protected destructor.
As per dblaikie suggestion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217871 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e40de571ad
commit
baaa29f3a2
@ -36,12 +36,13 @@ public:
|
|||||||
/// same section this Unit originated from.
|
/// same section this Unit originated from.
|
||||||
virtual DWARFUnit *getUnitForOffset(uint32_t Offset) const = 0;
|
virtual DWARFUnit *getUnitForOffset(uint32_t Offset) const = 0;
|
||||||
|
|
||||||
virtual ~DWARFUnitSectionBase() {}
|
protected:
|
||||||
|
~DWARFUnitSectionBase() {}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Concrete instance of DWARFUnitSection, specialized for one Unit type.
|
/// Concrete instance of DWARFUnitSection, specialized for one Unit type.
|
||||||
template<typename UnitType>
|
template<typename UnitType>
|
||||||
class DWARFUnitSection : public SmallVector<std::unique_ptr<UnitType>, 1>,
|
class DWARFUnitSection final : public SmallVector<std::unique_ptr<UnitType>, 1>,
|
||||||
public DWARFUnitSectionBase {
|
public DWARFUnitSectionBase {
|
||||||
|
|
||||||
struct UnitOffsetComparator {
|
struct UnitOffsetComparator {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user