StorageClass

public enum StorageClass

StorageClass enumerates the storage classes for globals in a Portable Executable file.

  • The default storage class for declarations is neither imported nor exported to/from a DLL.

    Declaration

    Swift

    case `default`
  • The storage class that guarantees the existence of a function in a DLL.

    Using this attribute can produce tighter code because the compiler may skip emitting a thunk and instead directly jump to a particular address.

    Declaration

    Swift

    case dllImport
  • The storage class for symbols that should be exposed outside of this DLL.

    This storage class augments the use of a .DEF file, but cannot completely replace them.

    Declaration

    Swift

    case dllExport
  • Retrieves the corresponding LLVMDLLStorageClass.

    Declaration

    Swift

    public var llvm: LLVMDLLStorageClass { get }