Changeset View
Changeset View
Standalone View
Standalone View
llvm/include/llvm/Object/XCOFFObjectFile.h
Show First 20 Lines • Show All 342 Lines • ▼ Show 20 Lines | |||||
struct XCOFFSectAuxEntForStat { | struct XCOFFSectAuxEntForStat { | ||||
support::ubig32_t SectionLength; | support::ubig32_t SectionLength; | ||||
support::ubig16_t NumberOfRelocEnt; | support::ubig16_t NumberOfRelocEnt; | ||||
support::ubig16_t NumberOfLineNum; | support::ubig16_t NumberOfLineNum; | ||||
uint8_t Pad[10]; | uint8_t Pad[10]; | ||||
}; // 32-bit XCOFF file only. | }; // 32-bit XCOFF file only. | ||||
struct XCOFFFunctionAuxEnt32 { | |||||
support::ubig32_t OffsetToExceptionTbl; | |||||
support::ubig32_t SizeOfFunction; | |||||
support::ubig32_t PtrToLineNum; | |||||
support::big32_t SymIdxOfNextBeyond; | |||||
uint8_t Pad[2]; | |||||
}; | |||||
struct XCOFFFunctionAuxEnt64 { | |||||
support::ubig64_t PtrToLineNum; | |||||
support::ubig32_t SizeOfFunction; | |||||
support::big32_t SymIdxOfNextBeyond; | |||||
uint8_t Pad; | |||||
XCOFF::SymbolAuxType AuxType; // Contains _AUX_FCN; Type of auxiliary entry | |||||
}; | |||||
struct XCOFFExceptionAuxEnt { | |||||
support::ubig64_t OffsetToExceptionTbl; | |||||
support::ubig32_t SizeOfFunction; | |||||
support::big32_t SymIdxOfNextBeyond; | |||||
uint8_t Pad; | |||||
XCOFF::SymbolAuxType AuxType; // Contains _AUX_EXCEPT; Type of auxiliary entry | |||||
}; | |||||
struct XCOFFBlockAuxEnt32 { | |||||
uint8_t ReservedZeros_1[2]; | |||||
support::ubig16_t LineNum_Hi; | |||||
support::ubig16_t LineNum_Lo; | |||||
uint8_t ReservedZeros_2[12]; | |||||
Higuoxing: It looks that the variables' name are not consistent across this file? Is there any particular… | |||||
}; | |||||
struct XCOFFBlockAuxEnt64 { | |||||
support::ubig32_t LineNum; | |||||
uint8_t Pad[13]; | |||||
XCOFF::SymbolAuxType AuxType; // Contains _AUX_SYM; Type of auxiliary entry | |||||
}; | |||||
struct XCOFFSectAuxEntForDWARF32 { | |||||
support::ubig32_t LengthOfSectionPortion; | |||||
uint8_t Pad1[4]; | |||||
support::ubig32_t NumberOfRelocEnt; | |||||
uint8_t Pad2[6]; | |||||
}; | |||||
struct XCOFFSectAuxEntForDWARF64 { | |||||
support::ubig64_t LengthOfSectionPortion; | |||||
support::ubig64_t NumberOfRelocEnt; | |||||
uint8_t Pad; | |||||
XCOFF::SymbolAuxType AuxType; // Contains _AUX_SECT; Type of Auxillary entry | |||||
}; | |||||
template <typename AddressType> struct XCOFFRelocation { | template <typename AddressType> struct XCOFFRelocation { | ||||
// Masks for packing/unpacking the r_rsize field of relocations. | // Masks for packing/unpacking the r_rsize field of relocations. | ||||
// The msb is used to indicate if the bits being relocated are signed or | // The msb is used to indicate if the bits being relocated are signed or | ||||
// unsigned. | // unsigned. | ||||
static constexpr uint8_t XR_SIGN_INDICATOR_MASK = 0x80; | static constexpr uint8_t XR_SIGN_INDICATOR_MASK = 0x80; | ||||
// The 2nd msb is used to indicate that the binder has replaced/modified the | // The 2nd msb is used to indicate that the binder has replaced/modified the | ||||
▲ Show 20 Lines • Show All 427 Lines • Show Last 20 Lines |
It looks that the variables' name are not consistent across this file? Is there any particular reason for that? e.g., Why use ReservedZeros_1 instead of ReservedZeros1 and LineNum_Hi instead of LineNumLo?