ObjectFormat

public enum ObjectFormat : String, CaseIterable

Represents an object file format known to LLVM.

  • An unknown object file format.

    Declaration

    Swift

    case unknown = "unknown"
  • The Common Object File Format.

    Declaration

    Swift

    case coff = "COFF"
  • elf

    The Executable and Linkable Format.

    Declaration

    Swift

    case elf = "ELF"
  • The Mach Object format.

    Declaration

    Swift

    case machO = "MachO"
  • The Web Assembly format.

    Declaration

    Swift

    case wasm = "Wasm"
  • The eXtended Common Object File Format.

    Declaration

    Swift

    case xcoff = "XCOFF"
  • Returns the default object file format for the given architecture and operating system.

    Declaration

    Swift

    public static func `default`(for arch: Architecture, os: OS) -> ObjectFormat

    Parameters

    arch

    The architecture.

    os

    The operatuing system.

    Return Value

    A default object file format compatible with the given architecture and operating system.