[clang] [llvm] [LinkerWrapper] Support relocatable linking for offloading (PR #80066)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 31 10:22:48 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 7155c1ef658b66132f15bf1406e84e68eed3358f 1a91a8a1a5bd0a0b6d47dd0e50e801a820400203 -- clang/test/Driver/linker-wrapper-image.c clang/test/Driver/linker-wrapper.c clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp llvm/include/llvm/Frontend/Offloading/OffloadWrapper.h llvm/lib/Frontend/Offloading/OffloadWrapper.cpp llvm/lib/Object/OffloadBinary.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp b/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
index 53a1bd9960..03b5471862 100644
--- a/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
+++ b/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
@@ -333,7 +333,7 @@ Error runLinker(ArrayRef<StringRef> Files, const ArgList &Args) {
if (Args.hasArg(OPT_relocatable))
return relocateOffloadSection(Args, ExecutableName)
- return Error::success();
+ return Error::success();
}
void printVersion(raw_ostream &OS) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/80066
More information about the cfe-commits
mailing list