ΒΆextern lto_bool_t lto_module_get_macho_cputype(
    lto_module_t mod,
    unsigned int* out_cputype,
    unsigned int* out_cpusubtype)

Description

If targeting mach-o on darwin, this function gets the CPU type and subtype that will end up being encoded in the mach-o header. These are the values that can be found in mach/machine.h. \p out_cputype and \p out_cpusubtype must be non-NULL. Returns true on error (check lto_get_error_message() for details).

Declared at: llvm/include/llvm-c/lto.h:311

Parameters

lto_module_t mod
unsigned int* out_cputype
unsigned int* out_cpusubtype