File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
trunk/include/swift/Reflection Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 95a2ef21fab8f291b8e0aedc97f8dcef3dd2cb3f
2
+ refs/heads/master: ef63ab8076375ec50002a262463f44f104a35f74
3
3
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
4
4
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
5
5
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
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