[llvm] ec94e7a - [MC] MCSection::dump: print section name
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 6 23:00:57 PDT 2024
Author: Fangrui Song
Date: 2024-06-06T23:00:52-07:00
New Revision: ec94e7a93031549b1f4e21e560ff4d3db265973a
URL: https://github.com/llvm/llvm-project/commit/ec94e7a93031549b1f4e21e560ff4d3db265973a
DIFF: https://github.com/llvm/llvm-project/commit/ec94e7a93031549b1f4e21e560ff4d3db265973a.diff
LOG: [MC] MCSection::dump: print section name
Added:
Modified:
llvm/lib/MC/MCSection.cpp
Removed:
################################################################################
diff --git a/llvm/lib/MC/MCSection.cpp b/llvm/lib/MC/MCSection.cpp
index 0fb9e8e13910f..ea3baf96b38ed 100644
--- a/llvm/lib/MC/MCSection.cpp
+++ b/llvm/lib/MC/MCSection.cpp
@@ -128,7 +128,7 @@ void MCSection::flushPendingLabels() {
LLVM_DUMP_METHOD void MCSection::dump() const {
raw_ostream &OS = errs();
- OS << "<MCSection";
+ OS << "<MCSection Name:" << getName();
OS << " Fragments:[\n ";
for (auto it = begin(), ie = end(); it != ie; ++it) {
if (it != begin())
More information about the llvm-commits
mailing list