1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-21 18:22:53 +01:00

[COFF] [CodeView] Add a few new enum values

These are undocumented, but are visible in the SDK headers since some
versions ago.

Differential Revision: https://reviews.llvm.org/D105513
This commit is contained in:
Martin Storsjö 2021-07-07 00:21:05 +03:00
parent df463561de
commit 5f3a753cf4
4 changed files with 9 additions and 1 deletions

View File

@ -439,7 +439,8 @@ struct AuxiliaryWeakExternal {
enum WeakExternalCharacteristics : unsigned {
IMAGE_WEAK_EXTERN_SEARCH_NOLIBRARY = 1,
IMAGE_WEAK_EXTERN_SEARCH_LIBRARY = 2,
IMAGE_WEAK_EXTERN_SEARCH_ALIAS = 3
IMAGE_WEAK_EXTERN_SEARCH_ALIAS = 3,
IMAGE_WEAK_EXTERN_ANTI_DEPENDENCY = 4
};
struct AuxiliarySectionDefinition {

View File

@ -135,6 +135,9 @@ enum class CPUType : uint16_t {
Thumb = 0xf0,
ARMNT = 0xf4,
ARM64 = 0xf6,
HybridX86ARM64 = 0xf7,
ARM64EC = 0xf8,
ARM64X = 0xf9,
D3D11_Shader = 0x100,
};

View File

@ -201,6 +201,9 @@ static const EnumEntry<unsigned> CPUTypeNames[] = {
CV_ENUM_CLASS_ENT(CPUType, Thumb),
CV_ENUM_CLASS_ENT(CPUType, ARMNT),
CV_ENUM_CLASS_ENT(CPUType, ARM64),
CV_ENUM_CLASS_ENT(CPUType, HybridX86ARM64),
CV_ENUM_CLASS_ENT(CPUType, ARM64EC),
CV_ENUM_CLASS_ENT(CPUType, ARM64X),
CV_ENUM_CLASS_ENT(CPUType, D3D11_Shader),
};

View File

@ -49,6 +49,7 @@ ScalarEnumerationTraits<COFFYAML::WeakExternalCharacteristics>::enumeration(
ECase(IMAGE_WEAK_EXTERN_SEARCH_NOLIBRARY);
ECase(IMAGE_WEAK_EXTERN_SEARCH_LIBRARY);
ECase(IMAGE_WEAK_EXTERN_SEARCH_ALIAS);
ECase(IMAGE_WEAK_EXTERN_ANTI_DEPENDENCY);
}
void ScalarEnumerationTraits<COFFYAML::AuxSymbolType>::enumeration(