X-Git-Url: https://git.saurik.com/apple/ld64.git/blobdiff_plain/f80fe69f3f29962e8aa43a99f8ed9201548f3d78..fb9a160cc46cd88a41dda5ab61012c5572e56f33:/src/ld/parsers/lto_file.h?ds=sidebyside diff --git a/src/ld/parsers/lto_file.h b/src/ld/parsers/lto_file.h index 4140a3a..6568232 100644 --- a/src/ld/parsers/lto_file.h +++ b/src/ld/parsers/lto_file.h @@ -39,7 +39,8 @@ extern bool isObjectFile(const uint8_t* fileContent, uint64_t fileLength, cpu_ty extern ld::relocatable::File* parse(const uint8_t* fileContent, uint64_t fileLength, const char* path, time_t modTime, ld::File::Ordinal ordinal, - cpu_type_t architecture, cpu_subtype_t subarch, bool logAllFiles); + cpu_type_t architecture, cpu_subtype_t subarch, bool logAllFiles, + bool verboseOptimizationHints); struct OptimizeOptions { const char* outputFilePath; @@ -47,6 +48,7 @@ struct OptimizeOptions { bool preserveAllGlobals; bool verbose; bool saveTemps; + bool ltoCodegenOnly; bool pie; bool mainExecutable; bool staticExecutable; @@ -55,9 +57,16 @@ struct OptimizeOptions { 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,