Skip to content

Commit 561d307

Browse files
committed
Hook up Haiku AArch64 and RISCV64 support
1 parent 230558e commit 561d307

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

clang/lib/Basic/Targets.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ std::unique_ptr<TargetInfo> AllocateTarget(const llvm::Triple &Triple,
148148
case llvm::Triple::Fuchsia:
149149
return std::make_unique<FuchsiaTargetInfo<AArch64leTargetInfo>>(Triple,
150150
Opts);
151+
case llvm::Triple::Haiku:
152+
return std::make_unique<HaikuTargetInfo<AArch64leTargetInfo>>(Triple,
153+
Opts);
151154
case llvm::Triple::Linux:
152155
switch (Triple.getEnvironment()) {
153156
default:
@@ -449,6 +452,9 @@ std::unique_ptr<TargetInfo> AllocateTarget(const llvm::Triple &Triple,
449452
case llvm::Triple::Fuchsia:
450453
return std::make_unique<FuchsiaTargetInfo<RISCV64TargetInfo>>(Triple,
451454
Opts);
455+
case llvm::Triple::Haiku:
456+
return std::make_unique<HaikuTargetInfo<RISCV64TargetInfo>>(Triple,
457+
Opts);
452458
case llvm::Triple::Linux:
453459
switch (Triple.getEnvironment()) {
454460
default:

0 commit comments

Comments
 (0)