mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The logic here used to consist of a couple of ad-hoc checks, followed by a general assumption that if something had already been emitted, it could be referenced directly, whereas everything else had to go through a GOT entry. This is way too conservative. Instead, let's try to correctly calculate what translation unit an entity is going to end up in.
997 B
997 B