[llvm] [NFC] Extract Printing portions of DWARFCFIProgram to new files (PR #143762)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 11 11:13:04 PDT 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 HEAD~1 HEAD --extensions h,cpp -- llvm/include/llvm/DebugInfo/DWARF/DWARFCFIPrinter.h llvm/lib/DebugInfo/DWARF/DWARFCFIPrinter.cpp llvm/include/llvm/DebugInfo/DWARF/DWARFCFIProgram.h llvm/lib/DebugInfo/DWARF/DWARFCFIProgram.cpp llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp llvm/tools/llvm-readobj/DwarfCFIEHPrinter.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/DebugInfo/DWARF/DWARFCFIPrinter.h b/llvm/include/llvm/DebugInfo/DWARF/DWARFCFIPrinter.h
index d51e9a897..a7d5d09af 100644
--- a/llvm/include/llvm/DebugInfo/DWARF/DWARFCFIPrinter.h
+++ b/llvm/include/llvm/DebugInfo/DWARF/DWARFCFIPrinter.h
@@ -23,8 +23,9 @@ namespace dwarf {
class CFIPrinter {
public:
- static void print(const CFIProgram &P, raw_ostream &OS, DIDumpOptions DumpOpts,
- unsigned IndentLevel, std::optional<uint64_t> Address);
+ static void print(const CFIProgram &P, raw_ostream &OS,
+ DIDumpOptions DumpOpts, unsigned IndentLevel,
+ std::optional<uint64_t> Address);
static void printOperand(raw_ostream &OS, DIDumpOptions DumpOpts,
const CFIProgram &P,
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFCFIPrinter.cpp b/llvm/lib/DebugInfo/DWARF/DWARFCFIPrinter.cpp
index 44261f8ad..989f91729 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFCFIPrinter.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFCFIPrinter.cpp
@@ -24,7 +24,6 @@
using namespace llvm;
using namespace dwarf;
-
void CFIPrinter::print(const CFIProgram &P, raw_ostream &OS,
DIDumpOptions DumpOpts, unsigned IndentLevel,
std::optional<uint64_t> Address) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/143762
More information about the llvm-commits
mailing list