[PATCH] D77716: [obj2yaml] - Do not dump the segment's "Align" field when it is equal to 1.

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 8 13:03:09 PDT 2020


MaskRay accepted this revision.
MaskRay added a comment.
This revision is now accepted and ready to land.

Looks great!



================
Comment at: llvm/tools/obj2yaml/elf2yaml.cpp:322
+    // yaml2obj sets the alignment of a segment to 1 by default.
+    // We do not print the default alignment to reduce noise in the output.
+    if (Phdr.p_align != 1)
----------------


Omit it to reduce output?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77716/new/

https://reviews.llvm.org/D77716





More information about the llvm-commits mailing list