Commits

Slava Pestov committed 824bd7544dd
IRGen: Emit typerefs for all builtin types referenced from reflection metadata sections In order to perform layout, the remote mirrors library needs to know about the size, alignment and extra inhabitants of builtin types. Ideally we would emit a reflection info section in libswiftRuntime.o, but in the meantime just duplicate builtin type metadata for all builtin types referenced from the current module instead. In practice only the stdlib and a handful of overlays like the SIMD overlay use builtin types, and only a few at a time. Tested manually by running swift-reflection-tool on the standard library -- I'll add automated tests by using -parse-stdlib to reference Builtin types in a subsequent patch that adds more layout logic. NFC if -enable-reflection-metadata is off.