[llvm] [BOLT][AArch64] Create entry points for addresses referenced by dynamic relocations and allow getNewFunctionOrDataAddress to map addrs inside functions. (PR #120267)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 17 09:10:14 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 9fc54c0e8049553a30c17a3698445d58800916c9 f6435e5499dd0384820381bf85995b823789c279 --extensions cpp -- bolt/lib/Rewrite/RewriteInstance.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/bolt/lib/Rewrite/RewriteInstance.cpp b/bolt/lib/Rewrite/RewriteInstance.cpp
index 55fcd6b6e7..3f66bb4040 100644
--- a/bolt/lib/Rewrite/RewriteInstance.cpp
+++ b/bolt/lib/Rewrite/RewriteInstance.cpp
@@ -2441,9 +2441,9 @@ void RewriteInstance::readDynamicRelocations(const SectionRef &Section,
const uint64_t SymAddress = SymbolAddress + Addend;
BinaryFunction *Func = BC->getBinaryFunctionContainingAddress(SymAddress);
- if(Func){
+ if (Func) {
const uint64_t FunctionOffset = SymAddress - Func->getAddress();
- if(FunctionOffset)
+ if (FunctionOffset)
Func->addEntryPointAtOffset(FunctionOffset);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/120267
More information about the llvm-commits
mailing list