The right symbol flag mask is ~0x7, not ~0xf.
Also emit string names for the other flags (we were missing some).
| Paths 
 |  Differential  D101548  
[llvm-readobj] Recognize N_THUMB_DEF as a symbol flag ClosedPublic Authored by int3 on Apr 29 2021, 10:09 AM. 
Details 
 Summary The right symbol flag mask is ~0x7, not ~0xf. Also emit string names for the other flags (we were missing some). 
Diff Detail 
 Event TimelineThis revision is now accepted and ready to land.Apr 30 2021, 9:16 AM This revision was landed with ongoing or failed builds.Apr 30 2021, 2:40 PM Closed by commit rGc00fc180ecda: [llvm-readobj] Recognize N_THUMB_DEF as a symbol flag (authored by int3).  ·  Explain Why This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
 
Diff 341564 llvm/test/tools/llvm-readobj/MachO/flags.yaml
 
 llvm/tools/llvm-readobj/MachODumper.cpp
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
clang-format: please reformat the code
- {"ThumbDef", 0x8} - {"ReferencedDynamically", 0x10}, - {"NoDeadStrip", 0x20}, - {"WeakRef", 0x40}, - {"WeakDef", 0x80}, - {"SymbolResolver", 0x100}, - {"AltEntry", 0x200}, - {"ColdFunc", 0x400}, + {"ThumbDef", 0x8} {"ReferencedDynamically", 0x10}, + {"NoDeadStrip", 0x20},5 diff lines are omitted. See full path.