[llvm] Add functionality to llvm-objcopy to remove prefixes (PR #79415)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 24 23:35:28 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff f7a615a7d5a3a01d7d0ca46f8481248ef587cfe2 cb40ebf016bbcd6f8828b3d4d6dfef79bc908a6f -- llvm/include/llvm/ObjCopy/CommonConfig.h llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp llvm/tools/llvm-objcopy/ObjcopyOptions.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/tools/llvm-objcopy/ObjcopyOptions.cpp b/llvm/tools/llvm-objcopy/ObjcopyOptions.cpp
index a6ebf24ecb..e3e28ae9f1 100644
--- a/llvm/tools/llvm-objcopy/ObjcopyOptions.cpp
+++ b/llvm/tools/llvm-objcopy/ObjcopyOptions.cpp
@@ -733,7 +733,8 @@ objcopy::parseObjcopyOptions(ArrayRef<const char *> RawArgsArr,
Config.SplitDWO = InputArgs.getLastArgValue(OBJCOPY_split_dwo);
Config.SymbolsPrefix = InputArgs.getLastArgValue(OBJCOPY_prefix_symbols);
- Config.SymbolsPrefixRemove = InputArgs.getLastArgValue(OBJCOPY_prefix_symbols_remove);
+ Config.SymbolsPrefixRemove =
+ InputArgs.getLastArgValue(OBJCOPY_prefix_symbols_remove);
if (!Config.SymbolsPrefix.empty() && !Config.SymbolsPrefixRemove.empty())
return createStringError(
errc::invalid_argument,
``````````
</details>
https://github.com/llvm/llvm-project/pull/79415
More information about the llvm-commits
mailing list