[llvm] b4c8608 - Adjust debug output for MCRelaxableFragment to include the size so that sanity checking relaxation offsets from -debug output is easier

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 13 16:22:52 PDT 2020


Author: Philip Reames
Date: 2020-03-13T16:22:46-07:00
New Revision: b4c8608ebaa20727de622567b3db8d5d2368b820

URL: https://github.com/llvm/llvm-project/commit/b4c8608ebaa20727de622567b3db8d5d2368b820
DIFF: https://github.com/llvm/llvm-project/commit/b4c8608ebaa20727de622567b3db8d5d2368b820.diff

LOG: Adjust debug output for MCRelaxableFragment to include the size so that sanity checking relaxation offsets from -debug output is easier

Added: 
    

Modified: 
    llvm/lib/MC/MCFragment.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/MC/MCFragment.cpp b/llvm/lib/MC/MCFragment.cpp
index 79e675c59c6b..5252c3f14672 100644
--- a/llvm/lib/MC/MCFragment.cpp
+++ b/llvm/lib/MC/MCFragment.cpp
@@ -394,6 +394,7 @@ LLVM_DUMP_METHOD void MCFragment::dump() const {
     OS << "\n       ";
     OS << " Inst:";
     F->getInst().dump_pretty(OS);
+    OS << " (" << F->getContents().size() << " bytes)";
     break;
   }
   case MCFragment::FT_Org:  {


        


More information about the llvm-commits mailing list