[llvm] [bolt] Fix typos discovered by codespell (PR #124726)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 28 02:38:14 PST 2025
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 cfc8ef0ad8f70be22b44a8e1b56856795eb18282 6c4f78c7e01da9bc0686b74b053ccfff4504fb58 --extensions cpp,h,c -- bolt/include/bolt/Core/BinaryFunction.h bolt/include/bolt/Core/DIEBuilder.h bolt/include/bolt/Core/DebugData.h bolt/include/bolt/Core/DebugNames.h bolt/include/bolt/Core/MCPlusBuilder.h bolt/include/bolt/Passes/FrameAnalysis.h bolt/include/bolt/Passes/LongJmp.h bolt/include/bolt/Passes/ReorderAlgorithm.h bolt/include/bolt/Rewrite/DWARFRewriter.h bolt/lib/Core/BinaryContext.cpp bolt/lib/Core/BinaryFunction.cpp bolt/lib/Core/BinaryFunctionCallGraph.cpp bolt/lib/Core/DIEBuilder.cpp bolt/lib/Core/DebugData.cpp bolt/lib/Core/DebugNames.cpp bolt/lib/Passes/Aligner.cpp bolt/lib/Passes/RegReAssign.cpp bolt/lib/Passes/SplitFunctions.cpp bolt/lib/Profile/DataReader.cpp bolt/lib/Rewrite/BuildIDRewriter.cpp bolt/lib/Rewrite/DWARFRewriter.cpp bolt/lib/Rewrite/PseudoProbeRewriter.cpp bolt/lib/Rewrite/RewriteInstance.cpp bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp bolt/lib/Target/X86/X86MCPlusBuilder.cpp bolt/lib/Utils/CommandLineOpts.cpp bolt/runtime/hugify.cpp bolt/runtime/instr.cpp bolt/runtime/sys_aarch64.h bolt/runtime/sys_x86_64.h bolt/test/runtime/X86/asm-dump.c
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/bolt/include/bolt/Core/DebugData.h b/bolt/include/bolt/Core/DebugData.h
index 8b8ea875e0..6b86231730 100644
--- a/bolt/include/bolt/Core/DebugData.h
+++ b/bolt/include/bolt/Core/DebugData.h
@@ -346,8 +346,8 @@ public:
/// Write out entries in to .debug_addr section for CUs.
virtual std::optional<uint64_t> finalize(const size_t BufferSize);
- /// Return buffer with all the entries in .debug_addr already written out using
- /// update(...).
+ /// Return buffer with all the entries in .debug_addr already written out
+ /// using update(...).
virtual std::unique_ptr<AddressSectionBuffer> releaseBuffer() {
return std::move(Buffer);
}
diff --git a/bolt/runtime/sys_x86_64.h b/bolt/runtime/sys_x86_64.h
index 86e21ea677..933e939012 100644
--- a/bolt/runtime/sys_x86_64.h
+++ b/bolt/runtime/sys_x86_64.h
@@ -171,8 +171,9 @@ uint64_t __exit(uint64_t code) {
#if !defined(__APPLE__)
// We use a stack-allocated buffer for string manipulation in many pieces of
// this code, including the code that prints each line of the fdata file. This
-// buffer needs to accommodate large function names, but shouldn't be arbitrarily
-// large (dynamically allocated) for simplicity of our memory space usage.
+// buffer needs to accommodate large function names, but shouldn't be
+// arbitrarily large (dynamically allocated) for simplicity of our memory space
+// usage.
// Declare some syscall wrappers we use throughout this code to avoid linking
// against system libc.
``````````
</details>
https://github.com/llvm/llvm-project/pull/124726
More information about the llvm-commits
mailing list