Lines Matching refs:Config

133 static Error handleArgs(const CommonConfig &Config,  in handleArgs()  argument
136 Obj.removeSections([&Config](const Section &Sec) { in handleArgs()
139 if (!Config.OnlySection.empty() && !Config.OnlySection.matches(Sec.Name)) in handleArgs()
142 if (Config.StripDebug || Config.StripAll || Config.StripAllGNU || in handleArgs()
143 Config.DiscardMode == DiscardType::All || Config.StripUnneeded) { in handleArgs()
149 if (Config.ToRemove.matches(Sec.Name)) in handleArgs()
155 if (Config.OnlyKeepDebug) { in handleArgs()
166 if (Config.StripAll || Config.StripAllGNU) in handleArgs()
171 if (Config.StripUnneeded || Config.DiscardMode == DiscardType::All || in handleArgs()
172 !Config.SymbolsToRemove.empty()) in handleArgs()
177 auto I = Config.SymbolsToRename.find(Sym.Name); in handleArgs()
178 if (I != Config.SymbolsToRename.end()) in handleArgs()
185 if (Config.StripAll || Config.StripAllGNU) in handleArgs()
188 if (Config.SymbolsToRemove.matches(Sym.Name)) { in handleArgs()
193 "'" + Config.OutputFilename + "': not stripping symbol '" + in handleArgs()
205 if (Config.StripUnneeded || in handleArgs()
206 Config.UnneededSymbolsToRemove.matches(Sym.Name)) in handleArgs()
212 if (Config.DiscardMode == DiscardType::All && in handleArgs()
225 if (!Config.SetSectionFlags.empty()) in handleArgs()
227 const auto It = Config.SetSectionFlags.find(Sec.Name); in handleArgs()
228 if (It != Config.SetSectionFlags.end()) in handleArgs()
233 for (const NewSectionInfo &NewSection : Config.AddSection) { in handleArgs()
235 const auto It = Config.SetSectionFlags.find(NewSection.SectionName); in handleArgs()
236 if (It != Config.SetSectionFlags.end()) in handleArgs()
248 for (const NewSectionInfo &NewSection : Config.UpdateSection) { in handleArgs()
270 if (!Config.AddGnuDebugLink.empty()) in handleArgs()
271 if (Error E = addGnuDebugLink(Obj, Config.AddGnuDebugLink)) in handleArgs()
279 "'" + Config.OutputFilename + in handleArgs()
292 Error executeObjcopyOnBinary(const CommonConfig &Config, in executeObjcopyOnBinary() argument
298 return createFileError(Config.InputFilename, ObjOrErr.takeError()); in executeObjcopyOnBinary()
301 if (Error E = handleArgs(Config, COFFConfig, *Obj)) in executeObjcopyOnBinary()
302 return createFileError(Config.InputFilename, std::move(E)); in executeObjcopyOnBinary()
305 return createFileError(Config.OutputFilename, std::move(E)); in executeObjcopyOnBinary()