LLVM: llvm::objcopy:🧝:OwnedDataSection Class Reference (original) (raw)

#include "[ObjCopy/ELF/ELFObject.h](ELFObject%5F8h%5Fsource.html)"

Inheritance diagram for llvm::objcopy:🧝:OwnedDataSection:

[legend]

Public Member Functions
OwnedDataSection (StringRef SecName, ArrayRef< uint8_t > Data)
OwnedDataSection (const Twine &SecName, uint64_t SecAddr, uint64_t SecFlags, uint64_t SecOff)
OwnedDataSection (SectionBase &S, ArrayRef< uint8_t > Data)
void appendHexData (StringRef HexData)
Error accept (SectionVisitor &Sec) const override
Error accept (MutableSectionVisitor &Visitor) override
bool hasContents () const override
ArrayRef< uint8_t > getContents () const override
Public Member Functions inherited from llvm::objcopy:🧝:SectionBase
SectionBase ()=default
SectionBase (const SectionBase &)=default
virtual ~SectionBase ()=default
virtual Error initialize (SectionTableRef SecTable)
virtual void finalize ()
virtual Error removeSectionReferences (bool AllowBrokenLinks, function_ref< bool(const SectionBase *)> ToRemove)
virtual Error removeSymbols (function_ref< bool(const Symbol &)> ToRemove)
virtual void markSymbols ()
virtual void replaceSectionReferences (const DenseMap< SectionBase *, SectionBase * > &)
virtual void onRemove ()
virtual void restoreSymTabLink (SymbolTableSection &)
Additional Inherited Members
Public Attributes inherited from llvm::objcopy:🧝:SectionBase
std::string Name
Segment * ParentSegment = nullptr
uint64_t HeaderOffset = 0
uint32_t Index = 0
uint32_t OriginalIndex = 0
uint64_t OriginalFlags = 0
uint64_t OriginalType = ELF::SHT_NULL
uint64_t OriginalOffset = std::numeric_limits<uint64_t>::max()
uint64_t Addr = 0
uint64_t Align = 1
uint32_t EntrySize = 0
uint64_t Flags = 0
uint64_t Info = 0
uint64_t Link = ELF::SHN_UNDEF
uint64_t NameIndex = 0
uint64_t Offset = 0
uint64_t Size = 0
uint64_t Type = ELF::SHT_NULL
ArrayRef< uint8_t > OriginalData
bool HasSymbol = false

Detailed Description

Definition at line 628 of file ELFObject.h.

Constructor & Destructor Documentation

llvm::objcopy:🧝:OwnedDataSection::OwnedDataSection ( StringRef SecName, ArrayRef< uint8_t > Data ) inline

Definition at line 634 of file ELFObject.h.

References llvm::objcopy:🧝:SectionBase::Name, llvm::objcopy:🧝:SectionBase::OriginalOffset, llvm::objcopy:🧝:SectionBase::OriginalType, llvm::ELF::SHT_PROGBITS, llvm::objcopy:🧝:SectionBase::Size, llvm::StringRef::str(), and llvm::objcopy:🧝:SectionBase::Type.

OwnedDataSection() [2/3]

llvm::objcopy:🧝:OwnedDataSection::OwnedDataSection ( const Twine & SecName, uint64_t SecAddr, uint64_t SecFlags, uint64_t SecOff ) inline

Definition at line 642 of file ELFObject.h.

References llvm::objcopy:🧝:SectionBase::Addr, llvm::objcopy:🧝:SectionBase::Flags, llvm::objcopy:🧝:SectionBase::Name, llvm::objcopy:🧝:SectionBase::OriginalFlags, llvm::objcopy:🧝:SectionBase::OriginalOffset, llvm::objcopy:🧝:SectionBase::OriginalType, llvm::ELF::SHT_PROGBITS, llvm::Twine::str(), and llvm::objcopy:🧝:SectionBase::Type.

OwnedDataSection() [3/3]

llvm::objcopy:🧝:OwnedDataSection::OwnedDataSection ( SectionBase & S, ArrayRef< uint8_t > Data ) inline

Definition at line 651 of file ELFObject.h.

References llvm::objcopy:🧝:SectionBase::SectionBase(), and llvm::objcopy:🧝:SectionBase::Size.

Member Function Documentation

accept() [1/2]

Error OwnedDataSection::accept ( MutableSectionVisitor & Visitor) overridevirtual

Implements llvm::objcopy:🧝:SectionBase.

Definition at line 514 of file ELFObject.cpp.

References llvm::objcopy:🧝:MutableSectionVisitor::visit().

accept() [2/2]

Error OwnedDataSection::accept ( SectionVisitor & Sec) const overridevirtual

Implements llvm::objcopy:🧝:SectionBase.

Definition at line 510 of file ELFObject.cpp.

References llvm::objcopy:🧝:SectionVisitor::visit().

appendHexData()

void OwnedDataSection::appendHexData ( StringRef HexData )

Definition at line 518 of file ELFObject.cpp.

References assert(), checkedGetHex(), llvm::StringRef::drop_front(), llvm::StringRef::empty(), llvm::objcopy:🧝:SectionBase::Size, llvm::StringRef::size(), and llvm::StringRef::take_front().

getContents()

ArrayRef< uint8_t > llvm::objcopy:🧝:OwnedDataSection::getContents ( ) const inlineoverridevirtual

Reimplemented from llvm::objcopy:🧝:SectionBase.

Definition at line 660 of file ELFObject.h.

hasContents()

bool llvm::objcopy:🧝:OwnedDataSection::hasContents ( ) const inlineoverridevirtual

Reimplemented from llvm::objcopy:🧝:SectionBase.

Definition at line 659 of file ELFObject.h.


The documentation for this class was generated from the following files: