X-Git-Url: https://git.saurik.com/apple/ld64.git/blobdiff_plain/77cc3118ce7a3a70a0a7364d77ae1eb766a477e7..4f3e367c520f1fd8affdc77dd9e2b6bc6c3c693b:/src/ld.cpp diff --git a/src/ld.cpp b/src/ld.cpp index be90999..acd18c8 100644 --- a/src/ld.cpp +++ b/src/ld.cpp @@ -565,7 +565,8 @@ void Linker::optimize() std::vector newAtoms; std::vector additionalUndefines; for (std::vector::iterator it=fInputFiles.begin(); it != fInputFiles.end(); it++) { - (*it)->optimize(fAllAtoms, newAtoms, additionalUndefines, fNextInputOrdinal, fOutputFile, + (*it)->optimize(fAllAtoms, newAtoms, additionalUndefines, fDeadAtoms, fNextInputOrdinal, fOutputFile, + fOptions.llvmOptions(), fOptions.allGlobalsAreDeadStripRoots(), (int)fOptions.outputKind(), fOptions.verbose(), fOptions.saveTempFiles(), fOptions.getOutputFilePath(), fOptions.positionIndependentExecutable(), fOptions.allowTextRelocs());