Skip to content

Commit fffebf3

Browse files
committed
Add RISCV to CodeViewDebug
1 parent eca9f8d commit fffebf3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include "llvm/CodeGen/TargetSubtargetInfo.h"
3333
#include "llvm/Config/llvm-config.h"
3434
#include "llvm/DebugInfo/CodeView/CVTypeVisitor.h"
35+
#include "llvm/DebugInfo/CodeView/CodeView.h"
3536
#include "llvm/DebugInfo/CodeView/CodeViewRecordIO.h"
3637
#include "llvm/DebugInfo/CodeView/ContinuationRecordBuilder.h"
3738
#include "llvm/DebugInfo/CodeView/DebugInlineeLinesSubsection.h"
@@ -125,6 +126,9 @@ static CPUType mapArchToCVCPUType(Triple::ArchType Type) {
125126
return CPUType::ARM64;
126127
case Triple::ArchType::mipsel:
127128
return CPUType::MIPS;
129+
case llvm::Triple::ArchType::riscv32:
130+
case llvm::Triple::ArchType::riscv64:
131+
return CPUType::Unknown;
128132
case Triple::ArchType::UnknownArch:
129133
return CPUType::Unknown;
130134
default:

0 commit comments

Comments
 (0)