swift
3ce7a746 - Ask SILFunction link entities' clang nodes for weakness when applicable (#2822)

Commit
9 years ago
Ask SILFunction link entities' clang nodes for weakness when applicable (#2822) * Provide ways to get back to the original Clang declaration from a SILFunction or SILGLobalVariable. This will be used as one step towards moving IRGen off of the global external-definitions list. * Ask SILFunction link entities' clang nodes for weakness when applicable When importing C functions with availability attributes, we don't properly use that information to decide whether a symbol should be weak_extern, causing load failures in dylibs that reference these symbols when deployed to an older OS. This is a very targeted fix and we need a better architecture for deciding this. rdar://problem/26359452
Author
Committer
Parents
  • include/swift
    • SIL
      • File
        SILDeclRef.h
      • File
        SILFunction.h
      • File
        SILGlobalVariable.h
      • File
        SILLinkage.h
    • Serialization
      • File
        ModuleFormat.h
  • lib
    • IRGen
      • File
        Linking.h
    • SIL
      • File
        SILDeclRef.cpp
      • File
        SILFunction.cpp
      • File
        SILModule.cpp
    • Serialization
      • File
        DeserializeSIL.cpp
      • File
        SILFormat.h
      • File
        SerializeSIL.cpp
  • test
    • IRGen
      • Inputs/usr/include
        • File
          BridgeTestFoundation.h
      • File
        weak_import.swift
    • Interpreter
      • Inputs
        • FakeUnavailableObjCFramework.framework/Headers
          • File
            FakeUnavailableObjCFramework.h
        • File
          FakeUnavailableObjCFramework.m
      • File
        availability_weak_linking.swift