[PATCH] D105513: [COFF] [CodeView] Add a few new enum values
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 6 14:28:59 PDT 2021
mstorsjo created this revision.
mstorsjo added reviewers: rnk, smeenai.
Herald added a subscriber: hiraditya.
mstorsjo requested review of this revision.
Herald added a project: LLVM.
These are undocumented, but are visible in the SDK headers since some
versions ago.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D105513
Files:
llvm/include/llvm/BinaryFormat/COFF.h
llvm/include/llvm/DebugInfo/CodeView/CodeView.h
llvm/lib/DebugInfo/CodeView/EnumTables.cpp
llvm/lib/ObjectYAML/COFFYAML.cpp
Index: llvm/lib/ObjectYAML/COFFYAML.cpp
===================================================================
--- llvm/lib/ObjectYAML/COFFYAML.cpp
+++ llvm/lib/ObjectYAML/COFFYAML.cpp
@@ -49,6 +49,7 @@
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(
Index: llvm/lib/DebugInfo/CodeView/EnumTables.cpp
===================================================================
--- llvm/lib/DebugInfo/CodeView/EnumTables.cpp
+++ llvm/lib/DebugInfo/CodeView/EnumTables.cpp
@@ -201,6 +201,9 @@
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),
};
Index: llvm/include/llvm/DebugInfo/CodeView/CodeView.h
===================================================================
--- llvm/include/llvm/DebugInfo/CodeView/CodeView.h
+++ llvm/include/llvm/DebugInfo/CodeView/CodeView.h
@@ -135,6 +135,9 @@
Thumb = 0xf0,
ARMNT = 0xf4,
ARM64 = 0xf6,
+ HybridX86ARM64 = 0xf7,
+ ARM64EC = 0xf8,
+ ARM64X = 0xf9,
D3D11_Shader = 0x100,
};
Index: llvm/include/llvm/BinaryFormat/COFF.h
===================================================================
--- llvm/include/llvm/BinaryFormat/COFF.h
+++ llvm/include/llvm/BinaryFormat/COFF.h
@@ -440,7 +440,8 @@
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 {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105513.356820.patch
Type: text/x-patch
Size: 1889 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210706/81114935/attachment-0001.bin>
More information about the llvm-commits
mailing list