Lines Matching defs:MachOConfig
15 #include "llvm/ObjCopy/MachO/MachOConfig.h"
94 const MachOConfig &MachOConfig,
110 auto RemovePred = [&Config, &MachOConfig,
114 if (MachOConfig.KeepUndefined && N->isUndefinedSymbol())
126 if (MachOConfig.StripSwiftSymbols &&
160 static Error processLoadCommands(const MachOConfig &MachOConfig, Object &Obj) {
162 DenseSet<StringRef> RPathsToRemove(MachOConfig.RPathsToRemove.begin(),
163 MachOConfig.RPathsToRemove.end());
166 &MachOConfig](const LoadCommand &LC) {
170 if (MachOConfig.RemoveAllRpaths)
187 for (StringRef RPath : MachOConfig.RPathsToRemove) {
203 for (const auto &OldNew : MachOConfig.RPathsToUpdate) {
219 if (MachOConfig.SharedLibId)
221 LC, *MachOConfig.SharedLibId);
226 StringRef NewRPath = MachOConfig.RPathsToUpdate.lookup(RPath);
238 MachOConfig.InstallNamesToUpdate.lookup(InstallName);
247 for (StringRef RPath : MachOConfig.RPathToAdd) {
256 for (StringRef RPath : MachOConfig.RPathToPrepend) {
269 if (!MachOConfig.RPathToPrepend.empty())
273 if (!MachOConfig.EmptySegmentsToRemove.empty()) {
274 auto RemovePred = [&MachOConfig](const LoadCommand &LC) {
278 MachOConfig.EmptySegmentsToRemove.contains(*LC.getSegmentName());
404 const MachOConfig &MachOConfig, Object &Obj) {
421 updateAndRemoveSymbols(Config, MachOConfig, Obj);
442 if (Error E = processLoadCommands(MachOConfig, Obj))
449 const MachOConfig &MachOConfig,
462 if (Error E = handleArgs(Config, MachOConfig, **O))
541 Expected<const MachOConfig &> MachO = Config.getMachOConfig();