diff options
author | Luqman Aden <me@luqman.ca> | 2020-10-19 22:10:27 -0700 |
---|---|---|
committer | Luqman Aden <me@luqman.ca> | 2020-10-19 22:16:16 -0700 |
commit | 51892a42dac55558f7dbec80ced570e72ff387c4 (patch) | |
tree | 6ff6df331c3c0338f1bd33022423a9f8dc296489 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | 7e9411efcf09e31d2db9e82dde378e40c908fc82 (diff) | |
download | llvm-51892a42dac55558f7dbec80ced570e72ff387c4.zip llvm-51892a42dac55558f7dbec80ced570e72ff387c4.tar.gz llvm-51892a42dac55558f7dbec80ced570e72ff387c4.tar.bz2 |
[COFF][ARM] Fix CodeView for Windows on 32bit ARM targets.
Create the LLVM / CodeView register mappings for the 32-bit ARM Window targets.
Reviewed By: compnerd
Differential Revision: https://reviews.llvm.org/D89622
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index bcace62..98fccf0 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -126,7 +126,9 @@ static CPUType mapArchToCVCPUType(Triple::ArchType Type) { case Triple::ArchType::x86_64: return CPUType::X64; case Triple::ArchType::thumb: - return CPUType::Thumb; + // LLVM currently doesn't support Windows CE and so thumb + // here is indiscriminately mapped to ARMNT specifically. + return CPUType::ARMNT; case Triple::ArchType::aarch64: return CPUType::ARM64; default: |