Port the GNU style printNotes method to the LLVMStyle subclass.
This is basically just a heavy refactor so that the note parsing/formatting logic from the GNUStyle::printNotes can be shared with LLVMStyle::printNotes.
| Paths 
 |  Differential  D54220  
[llvm-readobj] Implement LLVM style printer for --notes ClosedPublic Authored by rupprecht on Nov 7 2018, 12:32 PM. 
Details Summary Port the GNU style printNotes method to the LLVMStyle subclass. This is basically just a heavy refactor so that the note parsing/formatting logic from the GNUStyle::printNotes can be shared with LLVMStyle::printNotes. 
Diff Detail 
 Event TimelineHerald added subscribers: llvm-commits, fedor.sergeev, dschuff.  ·  View Herald TranscriptNov 7 2018, 12:32 PM 
 
 This revision is now accepted and ready to land.Nov 7 2018, 3:36 PM Closed by commit rL346371: [llvm-readobj] Implement LLVM style printer for --notes (authored by rupprecht).  ·  Explain WhyNov 7 2018, 3:56 PM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
 
Diff 173057 test/tools/llvm-readobj/gnu-notes.test
 test/tools/llvm-readobj/note-gnu-property.s
 test/tools/llvm-readobj/note-gnu-property2.s
 tools/llvm-readobj/ELFDumper.cpp
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
How about #include "llvm/Support/FormatVariadic.h"
formatv("0x{0:x}", *(const typename ELFT::Addr *)Data.data())
On LP64 Linux uint64_t should (best) use %lx