From be68f35bf55baf6150180170ec17371f0be90689 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Mon, 20 Jan 2025 08:00:24 +0100 Subject: [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. --- llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp') diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index 05bceb87403b..bda0e266d01d 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"); } -- cgit v1.2.3