Lines Matching defs:MachOConfig
15 #include "llvm/ObjCopy/MachO/MachOConfig.h"
94 const MachOConfig &MachOConfig,
129 auto RemovePred = [&Config, &MachOConfig,
133 if (MachOConfig.KeepUndefined && N->isUndefinedSymbol())
145 if (MachOConfig.StripSwiftSymbols &&
179 static Error processLoadCommands(const MachOConfig &MachOConfig, Object &Obj) {
181 DenseSet<StringRef> RPathsToRemove(MachOConfig.RPathsToRemove.begin(),
182 MachOConfig.RPathsToRemove.end());
185 &MachOConfig](const LoadCommand &LC) {
189 if (MachOConfig.RemoveAllRpaths)
206 for (StringRef RPath : MachOConfig.RPathsToRemove) {
222 for (const auto &OldNew : MachOConfig.RPathsToUpdate) {
238 if (MachOConfig.SharedLibId)
240 LC, *MachOConfig.SharedLibId);
245 StringRef NewRPath = MachOConfig.RPathsToUpdate.lookup(RPath);
257 MachOConfig.InstallNamesToUpdate.lookup(InstallName);
266 for (StringRef RPath : MachOConfig.RPathToAdd) {
275 for (StringRef RPath : MachOConfig.RPathToPrepend) {
288 if (!MachOConfig.RPathToPrepend.empty())
292 if (!MachOConfig.EmptySegmentsToRemove.empty()) {
293 auto RemovePred = [&MachOConfig](const LoadCommand &LC) {
297 MachOConfig.EmptySegmentsToRemove.contains(*LC.getSegmentName());
423 const MachOConfig &MachOConfig, Object &Obj) {
440 updateAndRemoveSymbols(Config, MachOConfig, Obj);
461 if (Error E = processLoadCommands(MachOConfig, Obj))
468 const MachOConfig &MachOConfig,
481 if (Error E = handleArgs(Config, MachOConfig, **O))
560 Expected<const MachOConfig &> MachO = Config.getMachOConfig();