TargetMachineError

public enum TargetMachineError : Error, CustomStringConvertible

Represents one of a few errors that can be thrown by a TargetMachine

  • The target machine failed to emit the specified file type. This case also contains the message emitted by LLVM explaining the failure.

    Declaration

    Swift

    case couldNotEmit(String, CodegenFileType)
  • The target machine failed to emit the bitcode for this module.

    Declaration

    Swift

    case couldNotEmitBitCode
  • The specified target triple was invalid.

    Declaration

    Swift

    case invalidTriple(String)
  • The Target is could not be created. This case also contains the message emitted by LLVM explaining the failure.

    Declaration

    Swift

    case couldNotCreateTarget(String, String)
  • Declaration

    Swift

    public var description: String { get }