Lines Matching refs:Config
60 static void removeSections(const CommonConfig &Config, Object &Obj) { in removeSections() argument
64 if (!Config.ToRemove.empty()) { in removeSections()
65 RemovePred = [&Config](const Section &Sec) { in removeSections()
66 return Config.ToRemove.matches(Sec.Name); in removeSections()
70 if (Config.StripDebug) { in removeSections()
76 if (Config.StripAll) { in removeSections()
83 if (Config.OnlyKeepDebug) { in removeSections()
84 RemovePred = [&Config](const Section &Sec) { in removeSections()
87 return Config.ToRemove.matches(Sec.Name) || !isDebugSection(Sec); in removeSections()
91 if (!Config.OnlySection.empty()) { in removeSections()
92 RemovePred = [&Config](const Section &Sec) { in removeSections()
95 return !Config.OnlySection.matches(Sec.Name); in removeSections()
99 if (!Config.KeepSection.empty()) { in removeSections()
100 RemovePred = [&Config, RemovePred](const Section &Sec) { in removeSections()
102 if (Config.KeepSection.matches(Sec.Name)) in removeSections()
112 static Error handleArgs(const CommonConfig &Config, Object &Obj) { in handleArgs() argument
114 for (StringRef Flag : Config.DumpSection) { in handleArgs()
122 removeSections(Config, Obj); in handleArgs()
124 for (const NewSectionInfo &NewSection : Config.AddSection) { in handleArgs()
142 Error executeObjcopyOnBinary(const CommonConfig &Config, const WasmConfig &, in executeObjcopyOnBinary() argument
147 return createFileError(Config.InputFilename, ObjOrErr.takeError()); in executeObjcopyOnBinary()
150 if (Error E = handleArgs(Config, *Obj)) in executeObjcopyOnBinary()
154 return createFileError(Config.OutputFilename, std::move(E)); in executeObjcopyOnBinary()