forked from OSchip/llvm-project
[ELF] - Get rid of uintX_t in GdbIndexSection. NFC.
llvm-svn: 298243
This commit is contained in:
parent
b17d16a2a1
commit
f6abfd7a53
|
@ -1854,7 +1854,7 @@ template <class ELFT> void GdbIndexSection<ELFT>::writeTo(uint8_t *Buf) {
|
||||||
Buf += 24;
|
Buf += 24;
|
||||||
|
|
||||||
// Write the CU list.
|
// Write the CU list.
|
||||||
for (std::pair<uintX_t, uintX_t> CU : CompilationUnits) {
|
for (std::pair<uint64_t, uint64_t> CU : CompilationUnits) {
|
||||||
write64le(Buf, CU.first);
|
write64le(Buf, CU.first);
|
||||||
write64le(Buf + 8, CU.second);
|
write64le(Buf + 8, CU.second);
|
||||||
Buf += 16;
|
Buf += 16;
|
||||||
|
@ -1862,7 +1862,7 @@ template <class ELFT> void GdbIndexSection<ELFT>::writeTo(uint8_t *Buf) {
|
||||||
|
|
||||||
// Write the address area.
|
// Write the address area.
|
||||||
for (AddressEntry &E : AddressArea) {
|
for (AddressEntry &E : AddressArea) {
|
||||||
uintX_t BaseAddr = E.Section->OutSec->Addr + E.Section->getOffset(0);
|
uint64_t BaseAddr = E.Section->OutSec->Addr + E.Section->getOffset(0);
|
||||||
write64le(Buf, BaseAddr + E.LowAddress);
|
write64le(Buf, BaseAddr + E.LowAddress);
|
||||||
write64le(Buf + 8, BaseAddr + E.HighAddress);
|
write64le(Buf + 8, BaseAddr + E.HighAddress);
|
||||||
write32le(Buf + 16, E.CuIndex);
|
write32le(Buf + 16, E.CuIndex);
|
||||||
|
|
|
@ -500,8 +500,6 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class ELFT> class GdbIndexSection final : public SyntheticSection {
|
template <class ELFT> class GdbIndexSection final : public SyntheticSection {
|
||||||
typedef typename ELFT::uint uintX_t;
|
|
||||||
|
|
||||||
const unsigned OffsetTypeSize = 4;
|
const unsigned OffsetTypeSize = 4;
|
||||||
const unsigned CuListOffset = 6 * OffsetTypeSize;
|
const unsigned CuListOffset = 6 * OffsetTypeSize;
|
||||||
const unsigned CompilationUnitSize = 16;
|
const unsigned CompilationUnitSize = 16;
|
||||||
|
@ -516,7 +514,7 @@ public:
|
||||||
bool empty() const override;
|
bool empty() const override;
|
||||||
|
|
||||||
// Pairs of [CU Offset, CU length].
|
// Pairs of [CU Offset, CU length].
|
||||||
std::vector<std::pair<uintX_t, uintX_t>> CompilationUnits;
|
std::vector<std::pair<uint64_t, uint64_t>> CompilationUnits;
|
||||||
|
|
||||||
llvm::StringTableBuilder StringPool;
|
llvm::StringTableBuilder StringPool;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue