Skip to content

Commit e9d8e0a

Browse files
author
Davide Italiano
committed
[ELF] Remove a wrong comment and clarify another one.
<rdar://problem/41901725>
1 parent a907398 commit e9d8e0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/swift/Reflection/ReflectionContext.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,15 +296,15 @@ class ReflectionContext
296296
return {{nullptr, nullptr}, 0};
297297
};
298298

299-
// FIXME: there's no swift5_builtin and swift5_capture section on Linux.
300299
auto FieldMdSec = findELFSectionByName("swift5_fieldmd");
301300
auto AssocTySec = findELFSectionByName("swift5_assocty");
302301
auto BuiltinTySec = findELFSectionByName("swift5_builtin");
303302
auto CaptureSec = findELFSectionByName("swift5_capture");
304303
auto TypeRefMdSec = findELFSectionByName("swift5_typeref");
305304
auto ReflStrMdSec = findELFSectionByName("swift5_reflstr");
306305

307-
// At-least-once semantics.
306+
// We succeed if at least one of the sections is present in the
307+
// ELF executable.
308308
if (FieldMdSec.first.first == nullptr &&
309309
AssocTySec.first.first == nullptr &&
310310
BuiltinTySec.first.first == nullptr &&

0 commit comments

Comments
 (0)