[compiler-rt] [llvm] [ORC][MachO] Use a per-graph compact-unwind dso_base (PR #208931)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 11 11:07:32 PDT 2026
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 origin/main HEAD --extensions h,cpp -- compiler-rt/test/orc/TestCases/Darwin/arm64/lljit-per-graph-compact-unwind-base.cpp compiler-rt/test/orc/TestCases/Darwin/x86-64/lljit-per-graph-compact-unwind-base.cpp compiler-rt/lib/orc/macho_platform.cpp llvm/include/llvm/ExecutionEngine/Orc/MachOPlatform.h llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/orc/macho_platform.cpp b/compiler-rt/lib/orc/macho_platform.cpp
index 254e8270f..7cbfe3684 100644
--- a/compiler-rt/lib/orc/macho_platform.cpp
+++ b/compiler-rt/lib/orc/macho_platform.cpp
@@ -127,8 +127,9 @@ template <>
class SPSSerializationTraits<SPSUnwindSectionInfo, UnwindSectionInfo> {
public:
static size_t size(const UnwindSectionInfo &USI) {
- return SPSUnwindSectionInfo::AsArgList::size(
- USI.CodeRanges, USI.DSOBase, USI.DwarfSection, USI.CompactUnwindSection);
+ return SPSUnwindSectionInfo::AsArgList::size(USI.CodeRanges, USI.DSOBase,
+ USI.DwarfSection,
+ USI.CompactUnwindSection);
}
static bool serialize(SPSOutputBuffer &OB, const UnwindSectionInfo &USI) {
diff --git a/llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp b/llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp
index ae81a4e8e..0bee63121 100644
--- a/llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp
@@ -1323,8 +1323,9 @@ MachOPlatform::MachOPlatformPlugin::findUnwindSectionInfo(
// Record the compact-unwind base that the __unwind_info writer used to encode
// its deltas, so the runtime decodes them against the same base. This is the
- // per-graph "__jitlink$libunwind_dso_base" symbol; if absent (e.g. DWARF-only)
- // US.DSOBase stays null and the runtime falls back to the JITDylib header.
+ // per-graph "__jitlink$libunwind_dso_base" symbol; if absent (e.g.
+ // DWARF-only) US.DSOBase stays null and the runtime falls back to the
+ // JITDylib header.
auto DSOBaseName = G.intern("__jitlink$libunwind_dso_base");
if (auto *DSOBaseSym = G.findAbsoluteSymbolByName(DSOBaseName))
US.DSOBase = DSOBaseSym->getAddress();
``````````
</details>
https://github.com/llvm/llvm-project/pull/208931
More information about the llvm-commits
mailing list