that on the ELF writer to detect a section we created.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120981
91177308-0d34-0410-b5e6-
96231b3b80d8
unsigned getLayoutOrder() const { return LayoutOrder; }
void setLayoutOrder(unsigned Value) { LayoutOrder = Value; }
- uint64_t getAddress() const { return Address; }
-
/// @name Fragment Access
/// @{
}
static bool IsELFMetaDataSection(const MCSectionData &SD) {
- return SD.getAddress() == ~UINT64_C(0) &&
+ return SD.getOrdinal() == ~UINT32_C(0) &&
!SD.getSection().isVirtualSection();
}
MCSectionData::MCSectionData(const MCSection &_Section, MCAssembler *A)
: Section(&_Section),
+ Ordinal(~UINT32_C(0)),
Alignment(1),
Address(~UINT64_C(0)),
HasInstructions(false)