aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
diff options
context:
space:
mode:
authorHervé Poussineau <hpoussin@reactos.org>2025-01-20 08:00:24 +0100
committerGitHub <noreply@github.com>2025-01-20 15:00:24 +0800
commitbe68f35bf55baf6150180170ec17371f0be90689 (patch)
tree568d29eecd7a2fcc6fb10c4e02cefcc34a3c5b6e /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
parent3b67383c6cb777e4f37dd1a5af0872843c9ab35a (diff)
downloadllvm-be68f35bf55baf6150180170ec17371f0be90689.zip
llvm-be68f35bf55baf6150180170ec17371f0be90689.tar.gz
llvm-be68f35bf55baf6150180170ec17371f0be90689.tar.bz2
[MC][CodeGen][Mips] Add CodeView mapping (#120877)
Also add support for new relocation types required by debug information. Constants have been taken from CodeView Symbolic Debug Information Specification.
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
index 05bceb8..bda0e26 100644
--- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
@@ -123,6 +123,8 @@ static CPUType mapArchToCVCPUType(Triple::ArchType Type) {
return CPUType::ARMNT;
case Triple::ArchType::aarch64:
return CPUType::ARM64;
+ case Triple::ArchType::mipsel:
+ return CPUType::MIPS;
default:
report_fatal_error("target architecture doesn't map to a CodeView CPUType");
}