Skip to content

Commit 3525c01

Browse files
committed
---
yaml --- r: 346973 b: refs/heads/master c: ef63ab8 h: refs/heads/master i: 346971: cf18196
1 parent cb44c97 commit 3525c01

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 95a2ef21fab8f291b8e0aedc97f8dcef3dd2cb3f
2+
refs/heads/master: ef63ab8076375ec50002a262463f44f104a35f74
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/include/swift/Reflection/ReflectionContext.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ template <> struct ELFTraits<llvm::ELF::ELFCLASS32> {
6060
using Section = const struct llvm::ELF::Elf32_Shdr;
6161
using Offset = llvm::ELF::Elf32_Off;
6262
using Size = llvm::ELF::Elf32_Word;
63+
using Address = llvm::ELF::Elf32_Addr;
6364
static constexpr unsigned char ELFClass = llvm::ELF::ELFCLASS32;
6465
};
6566

@@ -68,6 +69,7 @@ template <> struct ELFTraits<llvm::ELF::ELFCLASS64> {
6869
using Section = const struct llvm::ELF::Elf64_Shdr;
6970
using Offset = llvm::ELF::Elf64_Off;
7071
using Size = llvm::ELF::Elf64_Xword;
72+
using Address = llvm::ELF::Elf64_Addr;
7173
static constexpr unsigned char ELFClass = llvm::ELF::ELFCLASS64;
7274
};
7375

@@ -330,7 +332,7 @@ class ReflectionContext
330332
auto StrTab = reinterpret_cast<const char *>(StrTabBuf.get());
331333

332334
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> {
334336
// Now for all the sections, find their name.
335337
for (const typename T::Section *Hdr : SecHdrVec) {
336338
uint32_t Offset = Hdr->sh_name;

0 commit comments

Comments
 (0)