File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -1115,11 +1115,14 @@ dynamic_reloc_iterator COFFObjectFile::dynamic_reloc_end() const {
1115
1115
}
1116
1116
1117
1117
uint8_t COFFObjectFile::getBytesInAddress () const {
1118
- return getArch () == Triple::x86_64 || getArch () == Triple::aarch64 ? 8 : 4 ;
1118
+ return getArch () == Triple::x86_64 || getArch () == Triple::aarch64 ||
1119
+ getArch () == Triple::riscv64
1120
+ ? 8
1121
+ : 4 ;
1119
1122
}
1120
1123
1121
1124
StringRef COFFObjectFile::getFileFormatName () const {
1122
- switch (getMachine ()) {
1125
+ switch (getMachine ()) {
1123
1126
case COFF::IMAGE_FILE_MACHINE_I386:
1124
1127
return " COFF-i386" ;
1125
1128
case COFF::IMAGE_FILE_MACHINE_AMD64:
@@ -1134,6 +1137,10 @@ StringRef COFFObjectFile::getFileFormatName() const {
1134
1137
return " COFF-ARM64X" ;
1135
1138
case COFF::IMAGE_FILE_MACHINE_R4000:
1136
1139
return " COFF-MIPS" ;
1140
+ case COFF::IMAGE_FILE_MACHINE_RISCV32:
1141
+ return " COFF-RISCV32" ;
1142
+ case COFF::IMAGE_FILE_MACHINE_RISCV64:
1143
+ return " COFF-RISCV64" ;
1137
1144
default :
1138
1145
return " COFF-<unknown arch>" ;
1139
1146
}
You can’t perform that action at this time.
0 commit comments