Skip to content

Commit bcd32ef

Browse files
authored
[Driver][FreeBSD][NFC] Remove some code duplication (#120652)
1 parent 6f983f8 commit bcd32ef

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

clang/lib/Driver/ToolChains/FreeBSD.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -225,13 +225,7 @@ void freebsd::Linker::ConstructJob(Compilation &C, const JobAction &JA,
225225
break;
226226
}
227227

228-
if (Triple.isRISCV64()) {
229-
CmdArgs.push_back("-X");
230-
if (Args.hasArg(options::OPT_mno_relax))
231-
CmdArgs.push_back("--no-relax");
232-
}
233-
234-
if (Triple.isLoongArch64()) {
228+
if (Triple.isLoongArch64() || Triple.isRISCV64()) {
235229
CmdArgs.push_back("-X");
236230
if (Args.hasArg(options::OPT_mno_relax))
237231
CmdArgs.push_back("--no-relax");

0 commit comments

Comments
 (0)