Commit Graph

2 Commits

Author SHA1 Message Date
Nate Chandler
bfbc3a7570 [Test] Run __swift5_entry test on all Apple platforms.
Previously, the test was limited to only x86_64 macos.  Remove that
limitation by introducing the appropriate cross-platform typedef for
mach_header and signing the pointer before casting it to a function
pointer.
2020-08-04 15:51:30 -07:00
Nate Chandler
28cc144284 [IRGen] Add main() to __swift5_entry.
To enable lookup of the entry point, emit a pointer to that entry point
into a new section; on MachO, the __swift5_entry section of the __TEXT
segment.

rdar://problem/66402358
2020-08-03 15:40:16 -07:00