File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -391,6 +391,8 @@ TargetInfo *AllocateTarget(const llvm::Triple &Triple,
391
391
switch (os) {
392
392
case llvm::Triple::FreeBSD:
393
393
return new FreeBSDTargetInfo<RISCV64TargetInfo>(Triple, Opts);
394
+ case llvm::Triple::OpenBSD:
395
+ return new OpenBSDTargetInfo<RISCV64TargetInfo>(Triple, Opts);
394
396
case llvm::Triple::Fuchsia:
395
397
return new FuchsiaTargetInfo<RISCV64TargetInfo>(Triple, Opts);
396
398
case llvm::Triple::Linux:
Original file line number Diff line number Diff line change 1607
1607
// RUN: %clang_cc1 -E -dM -ffreestanding -triple=mips64-unknown-openbsd6.1 < /dev/null | FileCheck -match-full-lines -check-prefix OPENBSD %s
1608
1608
// RUN: %clang_cc1 -E -dM -ffreestanding -triple=mips64el-unknown-openbsd6.1 < /dev/null | FileCheck -match-full-lines -check-prefix OPENBSD %s
1609
1609
// RUN: %clang_cc1 -E -dM -ffreestanding -triple=sparc64-unknown-openbsd6.1 < /dev/null | FileCheck -match-full-lines -check-prefix OPENBSD %s
1610
+ // RUN: %clang_cc1 -E -dM -ffreestanding -triple=riscv64-unknown-openbsd6.1 < /dev/null | FileCheck -match-full-lines -check-prefix OPENBSD %s
1610
1611
// OPENBSD:#define __ELF__ 1
1611
1612
// OPENBSD:#define __INT16_TYPE__ short
1612
1613
// OPENBSD:#define __INT32_TYPE__ int
You can’t perform that action at this time.
0 commit comments