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,
391391 switch (os) {
392392 case llvm::Triple::FreeBSD:
393393 return new FreeBSDTargetInfo<RISCV64TargetInfo>(Triple, Opts);
394+ case llvm::Triple::OpenBSD:
395+ return new OpenBSDTargetInfo<RISCV64TargetInfo>(Triple, Opts);
394396 case llvm::Triple::Fuchsia:
395397 return new FuchsiaTargetInfo<RISCV64TargetInfo>(Triple, Opts);
396398 case llvm::Triple::Linux:
Original file line number Diff line number Diff line change 73267326// RUN: %clang_cc1 -E -dM -ffreestanding -triple=mips64-unknown-openbsd6.1 < /dev/null | FileCheck -match-full-lines -check-prefix OPENBSD %s
73277327// RUN: %clang_cc1 -E -dM -ffreestanding -triple=mips64el-unknown-openbsd6.1 < /dev/null | FileCheck -match-full-lines -check-prefix OPENBSD %s
73287328// 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
73297330// OPENBSD:#define __ELF__ 1
73307331// OPENBSD:#define __INT16_TYPE__ short
73317332// OPENBSD:#define __INT32_TYPE__ int
You can’t perform that action at this time.
0 commit comments