[COFF] Use the more accurate GuardFlags definition everywhere
authorAlvin Wong <alvin@alvinhc.com>
Wed, 31 Aug 2022 12:10:45 +0000 (15:10 +0300)
committerMartin Storsjö <martin@martin.st>
Wed, 31 Aug 2022 12:11:34 +0000 (15:11 +0300)
commit12d865415ff3b9c95eaf3b3d92258d7ef77d2e76
tree76961b7dffd41f88541898d3066b935acb0ece2f
parent94baaa6a5c7b44fedcc57e6abc710f45c4b004a0
[COFF] Use the more accurate GuardFlags definition everywhere

This also modifies llvm-readobj to be more future-proof when printing
the guard FIDs table by calculating the entry size correctly according
to MS docs.

Reviewed By: rnk

Differential Revision: https://reviews.llvm.org/D132924
lld/COFF/Writer.cpp
llvm/include/llvm/Object/COFF.h
llvm/tools/llvm-readobj/COFFDumper.cpp