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 7326
7326
// RUN: %clang_cc1 -E -dM -ffreestanding -triple=mips64-unknown-openbsd6.1 < /dev/null | FileCheck -match-full-lines -check-prefix OPENBSD %s
7327
7327
// RUN: %clang_cc1 -E -dM -ffreestanding -triple=mips64el-unknown-openbsd6.1 < /dev/null | FileCheck -match-full-lines -check-prefix OPENBSD %s
7328
7328
// RUN: %clang_cc1 -E -dM -ffreestanding -triple=sparc64-unknown-openbsd6.1 < /dev/null | FileCheck -match-full-lines -check-prefix OPENBSD %s
7329
+ // RUN: %clang_cc1 -E -dM -ffreestanding -triple=riscv64-unknown-openbsd6.1 < /dev/null | FileCheck -match-full-lines -check-prefix OPENBSD %s
7329
7330
// OPENBSD:#define __ELF__ 1
7330
7331
// OPENBSD:#define __INT16_TYPE__ short
7331
7332
// OPENBSD:#define __INT32_TYPE__ int
You can’t perform that action at this time.
0 commit comments