RelocMode

public enum RelocMode

The relocation model types supported by LLVM.

  • Generated code will assume the default for a particular target architecture.

    Declaration

    Swift

    case `default`
  • Generated code will exist at static offsets.

    Declaration

    Swift

    case `static`
  • pic

    Generated code will be Position-Independent.

    Declaration

    Swift

    case pic
  • Generated code will not be Position-Independent and may be used in static or dynamic executables but not necessarily a shared library.

    Declaration

    Swift

    case dynamicNoPIC
  • Returns the underlying LLVMRelocMode associated with this relocation model.

    Declaration

    Swift

    public func asLLVM() -> LLVMRelocMode