Lines Matching refs:Config

157 static Error handleArgs(const CommonConfig &Config,
159 for (StringRef Op : Config.DumpSection) {
166 Obj.removeSections([&Config](const Section &Sec) {
169 if (!Config.OnlySection.empty() && !Config.OnlySection.matches(Sec.Name))
172 if (Config.StripDebug || Config.StripAll || Config.StripAllGNU ||
173 Config.DiscardMode == DiscardType::All || Config.StripUnneeded) {
179 if (Config.ToRemove.matches(Sec.Name))
185 if (Config.OnlyKeepDebug) {
196 if (Config.StripAll || Config.StripAllGNU)
201 if (Config.StripUnneeded || Config.DiscardMode == DiscardType::All ||
202 !Config.SymbolsToRemove.empty())
207 auto I = Config.SymbolsToRename.find(Sym.Name);
208 if (I != Config.SymbolsToRename.end())
215 if (Config.StripAll || Config.StripAllGNU)
218 if (Config.SymbolsToRemove.matches(Sym.Name)) {
223 "'" + Config.OutputFilename + "': not stripping symbol '" +
235 if (Config.StripUnneeded ||
236 Config.UnneededSymbolsToRemove.matches(Sym.Name))
242 if (Config.DiscardMode == DiscardType::All &&
255 if (!Config.SetSectionFlags.empty())
257 const auto It = Config.SetSectionFlags.find(Sec.Name);
258 if (It != Config.SetSectionFlags.end())
263 for (const NewSectionInfo &NewSection : Config.AddSection) {
265 const auto It = Config.SetSectionFlags.find(NewSection.SectionName);
266 if (It != Config.SetSectionFlags.end())
278 for (const NewSectionInfo &NewSection : Config.UpdateSection) {
300 if (!Config.AddGnuDebugLink.empty())
301 if (Error E = addGnuDebugLink(Obj, Config.AddGnuDebugLink))
309 "'" + Config.OutputFilename +
322 Error executeObjcopyOnBinary(const CommonConfig &Config,
328 return createFileError(Config.InputFilename, ObjOrErr.takeError());
331 if (Error E = handleArgs(Config, COFFConfig, *Obj))
332 return createFileError(Config.InputFilename, std::move(E));
335 return createFileError(Config.OutputFilename, std::move(E));