[llvm] 45f8946 - [CodeView] Fix the ARM64 CPUType enum
Martin Storsjö via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 13 02:54:46 PDT 2021
Author: Martin Storsjö
Date: 2021-04-13T12:54:22+03:00
New Revision: 45f8946a759a780e6131256d6d206977b9c128ee
URL: https://github.com/llvm/llvm-project/commit/45f8946a759a780e6131256d6d206977b9c128ee
DIFF: https://github.com/llvm/llvm-project/commit/45f8946a759a780e6131256d6d206977b9c128ee.diff
LOG: [CodeView] Fix the ARM64 CPUType enum
The old, incorrect one seems to have been added in
d41ac895bb810d0b15844773cbecbf394d914010, with a similarly placed
entry added in EnumTables.cpp in
eb4d6142dcd53d79d8f8a86908a035582965fc52.
This matches the value documented at
https://docs.microsoft.com/en-us/visualstudio/debugger/debug-interface-access/cv-cpu-type-e?view=vs-2019.
This fixes running obj2yaml on an object file generated by MSVC.
Differential Revision: https://reviews.llvm.org/D100306
Added:
Modified:
llvm/include/llvm/DebugInfo/CodeView/CodeView.h
llvm/lib/DebugInfo/CodeView/EnumTables.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/DebugInfo/CodeView/CodeView.h b/llvm/include/llvm/DebugInfo/CodeView/CodeView.h
index c3acb05ea8b1..5a5d37fc404e 100644
--- a/llvm/include/llvm/DebugInfo/CodeView/CodeView.h
+++ b/llvm/include/llvm/DebugInfo/CodeView/CodeView.h
@@ -123,7 +123,6 @@ enum class CPUType : uint16_t {
ARM_XMAC = 0x66,
ARM_WMMX = 0x67,
ARM7 = 0x68,
- ARM64 = 0x69,
Omni = 0x70,
Ia64 = 0x80,
Ia64_2 = 0x81,
@@ -135,6 +134,7 @@ enum class CPUType : uint16_t {
EBC = 0xe0,
Thumb = 0xf0,
ARMNT = 0xf4,
+ ARM64 = 0xf6,
D3D11_Shader = 0x100,
};
diff --git a/llvm/lib/DebugInfo/CodeView/EnumTables.cpp b/llvm/lib/DebugInfo/CodeView/EnumTables.cpp
index 949707bf5475..088ffb74bb5d 100644
--- a/llvm/lib/DebugInfo/CodeView/EnumTables.cpp
+++ b/llvm/lib/DebugInfo/CodeView/EnumTables.cpp
@@ -189,7 +189,6 @@ static const EnumEntry<unsigned> CPUTypeNames[] = {
CV_ENUM_CLASS_ENT(CPUType, ARM_XMAC),
CV_ENUM_CLASS_ENT(CPUType, ARM_WMMX),
CV_ENUM_CLASS_ENT(CPUType, ARM7),
- CV_ENUM_CLASS_ENT(CPUType, ARM64),
CV_ENUM_CLASS_ENT(CPUType, Omni),
CV_ENUM_CLASS_ENT(CPUType, Ia64),
CV_ENUM_CLASS_ENT(CPUType, Ia64_2),
@@ -201,6 +200,7 @@ static const EnumEntry<unsigned> CPUTypeNames[] = {
CV_ENUM_CLASS_ENT(CPUType, EBC),
CV_ENUM_CLASS_ENT(CPUType, Thumb),
CV_ENUM_CLASS_ENT(CPUType, ARMNT),
+ CV_ENUM_CLASS_ENT(CPUType, ARM64),
CV_ENUM_CLASS_ENT(CPUType, D3D11_Shader),
};
More information about the llvm-commits
mailing list