Changeset View
Changeset View
Standalone View
Standalone View
include/llvm/DebugInfo/DWARF/DWARFObject.h
Show All 21 Lines | |||||
// implementation is eager and will call some of these methods even if the | // implementation is eager and will call some of these methods even if the | ||||
// result is not used. | // result is not used. | ||||
class DWARFObject { | class DWARFObject { | ||||
DWARFSection Dummy; | DWARFSection Dummy; | ||||
public: | public: | ||||
virtual ~DWARFObject() = default; | virtual ~DWARFObject() = default; | ||||
virtual StringRef getFileName() const { llvm_unreachable("unimplemented"); } | virtual StringRef getFileName() const { llvm_unreachable("unimplemented"); } | ||||
virtual const object::ObjectFile *getFile() const { return nullptr; } | |||||
virtual bool isLittleEndian() const = 0; | virtual bool isLittleEndian() const = 0; | ||||
virtual uint8_t getAddressSize() const { llvm_unreachable("unimplemented"); } | virtual uint8_t getAddressSize() const { llvm_unreachable("unimplemented"); } | ||||
virtual const DWARFSection &getInfoSection() const { return Dummy; } | virtual const DWARFSection &getInfoSection() const { return Dummy; } | ||||
virtual void | virtual void | ||||
forEachTypesSections(function_ref<void(const DWARFSection &)> F) const {} | forEachTypesSections(function_ref<void(const DWARFSection &)> F) const {} | ||||
virtual StringRef getAbbrevSection() const { return ""; } | virtual StringRef getAbbrevSection() const { return ""; } | ||||
virtual const DWARFSection &getLocSection() const { return Dummy; } | virtual const DWARFSection &getLocSection() const { return Dummy; } | ||||
virtual StringRef getARangeSection() const { return ""; } | virtual StringRef getARangeSection() const { return ""; } | ||||
Show All 38 Lines |