File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed
clang/lib/Driver/ToolChains/Arch Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -318,11 +318,11 @@ std::string riscv::getRISCVArch(const llvm::opt::ArgList &Args,
318
318
319
319
if (MABI.equals_insensitive (" ilp32e" ))
320
320
return " rv32e" ;
321
- else if (MABI.equals_insensitive (" lp64e" ))
321
+ if (MABI.equals_insensitive (" lp64e" ))
322
322
return " rv64e" ;
323
- else if (MABI.starts_with_insensitive (" ilp32" ))
323
+ if (MABI.starts_with_insensitive (" ilp32" ))
324
324
return " rv32imafdc" ;
325
- else if (MABI.starts_with_insensitive (" lp64" )) {
325
+ if (MABI.starts_with_insensitive (" lp64" )) {
326
326
if (Triple.isAndroid ())
327
327
return " rv64imafdcv_zba_zbb_zbs" ;
328
328
@@ -338,16 +338,14 @@ std::string riscv::getRISCVArch(const llvm::opt::ArgList &Args,
338
338
if (Triple.isRISCV32 ()) {
339
339
if (Triple.getOS () == llvm::Triple::UnknownOS)
340
340
return " rv32imac" ;
341
- else
342
- return " rv32imafdc" ;
343
- } else {
344
- if (Triple.getOS () == llvm::Triple::UnknownOS)
345
- return " rv64imac" ;
346
- else if (Triple.isAndroid ())
347
- return " rv64imafdcv_zba_zbb_zbs" ;
348
- else
349
- return " rv64imafdc" ;
341
+ return " rv32imafdc" ;
350
342
}
343
+
344
+ if (Triple.getOS () == llvm::Triple::UnknownOS)
345
+ return " rv64imac" ;
346
+ if (Triple.isAndroid ())
347
+ return " rv64imafdcv_zba_zbb_zbs" ;
348
+ return " rv64imafdc" ;
351
349
}
352
350
353
351
std::string riscv::getRISCVTargetCPU (const llvm::opt::ArgList &Args,
You can’t perform that action at this time.
0 commit comments