[clang] [compiler-rt] Reapply " [XRay] Add support for instrumentation of DSOs on x86_64 (#90959)" (PR #112930)

via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 18 09:30:50 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 dbe47c2a06e0928edde802d062ecf1a0ce45fbb9 90aa32cfaac5274d7f1604baa4d5316401385f4c --extensions h,cpp -- clang/test/Driver/XRay/xray-shared.cpp compiler-rt/lib/xray/xray_dso_init.cpp compiler-rt/test/xray/TestCases/Posix/basic-mode-dso.cpp compiler-rt/test/xray/TestCases/Posix/clang-xray-shared.cpp compiler-rt/test/xray/TestCases/Posix/dlopen.cpp compiler-rt/test/xray/TestCases/Posix/dso-dep-chains.cpp compiler-rt/test/xray/TestCases/Posix/patch-premain-dso.cpp compiler-rt/test/xray/TestCases/Posix/patching-unpatching-dso.cpp clang/include/clang/Driver/XRayArgs.h clang/lib/Driver/ToolChains/CommonArgs.cpp clang/lib/Driver/XRayArgs.cpp compiler-rt/include/xray/xray_interface.h compiler-rt/lib/xray/xray_AArch64.cpp compiler-rt/lib/xray/xray_arm.cpp compiler-rt/lib/xray/xray_hexagon.cpp compiler-rt/lib/xray/xray_init.cpp compiler-rt/lib/xray/xray_interface.cpp compiler-rt/lib/xray/xray_interface_internal.h compiler-rt/lib/xray/xray_loongarch64.cpp compiler-rt/lib/xray/xray_mips.cpp compiler-rt/lib/xray/xray_mips64.cpp compiler-rt/lib/xray/xray_powerpc64.cpp compiler-rt/lib/xray/xray_x86_64.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/compiler-rt/lib/xray/xray_powerpc64.cpp b/compiler-rt/lib/xray/xray_powerpc64.cpp
index 88cb5fbedb..a568c568c4 100644
--- a/compiler-rt/lib/xray/xray_powerpc64.cpp
+++ b/compiler-rt/lib/xray/xray_powerpc64.cpp
@@ -96,9 +96,9 @@ bool patchFunctionExit(
   return true;
 }
 
-bool patchFunctionTailExit(const bool Enable, const uint32_t FuncId,
-                           const XRaySledEntry &Sled,
-                           const XRayTrampolines &Trampolines) XRAY_NEVER_INSTRUMENT {
+bool patchFunctionTailExit(
+    const bool Enable, const uint32_t FuncId, const XRaySledEntry &Sled,
+    const XRayTrampolines &Trampolines) XRAY_NEVER_INSTRUMENT {
   return patchFunctionExit(Enable, FuncId, Sled, Trampolines);
 }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/112930


More information about the cfe-commits mailing list