Skip to content

Commit 8bf8510

Browse files
committed
Reflection: load the builtin section on Windows
This loads the builtin section metadata on Windows which is needed for the tests.
1 parent 3c74c0f commit 8bf8510

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

include/swift/Reflection/ReflectionContext.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ class ReflectionContext
331331

332332
// FIXME: This code needs to be cleaned up and updated
333333
// to make it work for 32 bit platforms.
334-
if (SectionName != ".sw5cptr") {
334+
if (SectionName != ".sw5cptr" && SectionName != ".sw5bltn") {
335335
Begin += 8;
336336
End -= 8;
337337
}
@@ -349,9 +349,8 @@ class ReflectionContext
349349
findCOFFSectionByName(".sw5flmd");
350350
std::pair<std::pair<const char *, const char *>, uint32_t> AssocTySec =
351351
findCOFFSectionByName(".sw5asty");
352-
// FIXME: Use the section .sw5bltn instead.
353352
std::pair<std::pair<const char *, const char *>, uint32_t> BuiltinTySec =
354-
{{nullptr, nullptr}, 0};
353+
findCOFFSectionByName(".sw5bltn");
355354
std::pair<std::pair<const char *, const char *>, uint32_t> ReflStrMdSec =
356355
findCOFFSectionByName(".sw5rfst");
357356

0 commit comments

Comments
 (0)