[llvm] [RuntimeDyld][Windows] Allocate space for dllimport things. (PR #102586)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 9 01:56:23 PDT 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 3fffa6d486ecedaf639927a448701df9fdc19a34 adaa01bf469a3ccf3c6fb9970ed4a509b0249a65 --extensions cpp,h -- llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldCOFF.cpp llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldCOFF.h llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldCOFF.cpp b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldCOFF.cpp
index e75aceb0aa..8a307826be 100644
--- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldCOFF.cpp
+++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldCOFF.cpp
@@ -119,7 +119,8 @@ bool RuntimeDyldCOFF::isCompatibleFile(const object::ObjectFile &Obj) const {
return Obj.isCOFF();
}
-bool RuntimeDyldCOFF::relocationNeedsDLLImportStub(const RelocationRef &R) const {
+bool RuntimeDyldCOFF::relocationNeedsDLLImportStub(
+ const RelocationRef &R) const {
object::symbol_iterator Symbol = R.getSymbol();
Expected<StringRef> TargetNameOrErr = Symbol->getName();
if (!TargetNameOrErr)
``````````
</details>
https://github.com/llvm/llvm-project/pull/102586
More information about the llvm-commits
mailing list