]> git.saurik.com Git - apple/ld64.git/blobdiff - src/ld.cpp
ld64-85.2.1.tar.gz
[apple/ld64.git] / src / ld.cpp
index be90999996dd1a54b51f7b7db1b7b89d083c6c8e..acd18c81391f77065e8dc6c9511b3d36ff787534 100644 (file)
@@ -565,7 +565,8 @@ void Linker::optimize()
        std::vector<class ObjectFile::Atom*> newAtoms;
        std::vector<const char *> additionalUndefines;
        for (std::vector<class ObjectFile::Reader*>::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());