X-Git-Url: https://git.saurik.com/apple/ld64.git/blobdiff_plain/ebf6f43431fe84b7b17822014a6d1f0169516e93..fb9a160cc46cd88a41dda5ab61012c5572e56f33:/src/ld/parsers/lto_file.h diff --git a/src/ld/parsers/lto_file.h b/src/ld/parsers/lto_file.h index 492d32c..6568232 100644 --- a/src/ld/parsers/lto_file.h +++ b/src/ld/parsers/lto_file.h @@ -38,8 +38,9 @@ extern const char* archName(const uint8_t* fileContent, uint64_t fileLength); extern bool isObjectFile(const uint8_t* fileContent, uint64_t fileLength, cpu_type_t architecture, cpu_subtype_t subarch); extern ld::relocatable::File* parse(const uint8_t* fileContent, uint64_t fileLength, - const char* path, time_t modTime, - cpu_type_t architecture, cpu_subtype_t subarch, bool logAllFiles); + const char* path, time_t modTime, ld::File::Ordinal ordinal, + cpu_type_t architecture, cpu_subtype_t subarch, bool logAllFiles, + bool verboseOptimizationHints); struct OptimizeOptions { const char* outputFilePath; @@ -47,14 +48,25 @@ struct OptimizeOptions { bool preserveAllGlobals; bool verbose; bool saveTemps; + bool ltoCodegenOnly; bool pie; bool mainExecutable; bool staticExecutable; bool relocatable; bool allowTextRelocs; bool linkerDeadStripping; + bool needsUnwindInfoSection; + bool keepDwarfUnwind; + bool verboseOptimizationHints; + bool armUsesZeroCostExceptions; + bool simulator; + bool ignoreMismatchPlatform; + bool bitcodeBundle; cpu_type_t arch; + const char* mcpu; + Options::Platform platform; const std::vector* llvmOptions; + const std::vector* initialUndefines; }; extern bool optimize( const std::vector& allAtoms,