File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ template <> struct ELFTraits<llvm::ELF::ELFCLASS32> {
60
60
using Section = const struct llvm ::ELF::Elf32_Shdr;
61
61
using Offset = llvm::ELF::Elf32_Off;
62
62
using Size = llvm::ELF::Elf32_Word;
63
+ using Address = llvm::ELF::Elf32_Addr;
63
64
static constexpr unsigned char ELFClass = llvm::ELF::ELFCLASS32;
64
65
};
65
66
@@ -68,6 +69,7 @@ template <> struct ELFTraits<llvm::ELF::ELFCLASS64> {
68
69
using Section = const struct llvm ::ELF::Elf64_Shdr;
69
70
using Offset = llvm::ELF::Elf64_Off;
70
71
using Size = llvm::ELF::Elf64_Xword;
72
+ using Address = llvm::ELF::Elf64_Addr;
71
73
static constexpr unsigned char ELFClass = llvm::ELF::ELFCLASS64;
72
74
};
73
75
@@ -330,7 +332,7 @@ class ReflectionContext
330
332
auto StrTab = reinterpret_cast <const char *>(StrTabBuf.get ());
331
333
332
334
auto findELFSectionByName = [&](std::string Name)
333
- -> std::pair<std::pair<const char *, const char *>, uint32_t > {
335
+ -> std::pair<std::pair<const char *, const char *>, typename T::Address > {
334
336
// Now for all the sections, find their name.
335
337
for (const typename T::Section *Hdr : SecHdrVec) {
336
338
uint32_t Offset = Hdr->sh_name ;
You can’t perform that action at this time.
0 commit comments