[llvm] [DirectX] Add `extract-section` to `llvm-objcopy` and implement it for `DXContainer` (PR #154804)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 4 02:14:13 PDT 2025
================
@@ -1082,6 +1082,14 @@ objcopy::parseObjcopyOptions(ArrayRef<const char *> ArgsArr,
"bad format for --dump-section, expected section=file");
Config.DumpSection.push_back(Value);
}
+ for (auto *Arg : InputArgs.filtered(OBJCOPY_extract_section)) {
+ StringRef Value(Arg->getValue());
+ if (Value.split('=').second.empty())
+ return createStringError(
+ errc::invalid_argument,
+ "bad format for --extract-section, expected section=file");
----------------
jh7370 wrote:
You need a test for this.
https://github.com/llvm/llvm-project/pull/154804
More information about the llvm-commits
mailing list