[PATCH] D73425: [PPC] Fix platform definitions when compiling FreeBSD powerpc64 as LE
Brandon Bergren via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Jan 25 22:43:44 PST 2020
Bdragon28 created this revision.
Bdragon28 added a project: PowerPC.
Herald added subscribers: cfe-commits, steven.zhang, shchenz, jsji, krytarowski, arichardson, nemanjai, emaste.
Herald added a project: clang.
As a prerequisite to doing experimental buids of pieces of FreeBSD PowerPC64 as little-endian, allow actually targeting it.
This is needed so basic platform definitions are pulled in. Without it, the compiler will only run freestanding.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D73425
Files:
clang/lib/Basic/Targets.cpp
Index: clang/lib/Basic/Targets.cpp
===================================================================
--- clang/lib/Basic/Targets.cpp
+++ clang/lib/Basic/Targets.cpp
@@ -352,6 +352,8 @@
switch (os) {
case llvm::Triple::Linux:
return new LinuxTargetInfo<PPC64TargetInfo>(Triple, Opts);
+ case llvm::Triple::FreeBSD:
+ return new FreeBSDTargetInfo<PPC64TargetInfo>(Triple, Opts);
case llvm::Triple::NetBSD:
return new NetBSDTargetInfo<PPC64TargetInfo>(Triple, Opts);
default:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73425.240416.patch
Type: text/x-patch
Size: 517 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200126/7ec555f1/attachment.bin>
More information about the cfe-commits
mailing list