Hello,

Attached is a patch to add AArch64 support for FreeBSD to clang. This is
based on a similar change in the FreeBSD project branch to add support
for AArch64.

I've run check-all before and after this change and found the same
two tests failing. I can also add new FreeBSD/AArch64 specific tests if
anyone has a suggestion which to add.

Andrew
Index: lib/Basic/Targets.cpp
===================================================================
--- lib/Basic/Targets.cpp	(revision 221780)
+++ lib/Basic/Targets.cpp	(working copy)
@@ -6250,6 +6250,8 @@
       return new DarwinAArch64TargetInfo(Triple);
 
     switch (os) {
+    case llvm::Triple::FreeBSD:
+      return new FreeBSDTargetInfo<AArch64leTargetInfo>(Triple);
     case llvm::Triple::Linux:
       return new LinuxTargetInfo<AArch64leTargetInfo>(Triple);
     case llvm::Triple::NetBSD:
@@ -6260,6 +6262,8 @@
 
   case llvm::Triple::aarch64_be:
     switch (os) {
+    case llvm::Triple::FreeBSD:
+      return new FreeBSDTargetInfo<AArch64beTargetInfo>(Triple);
     case llvm::Triple::Linux:
       return new LinuxTargetInfo<AArch64beTargetInfo>(Triple);
     case llvm::Triple::NetBSD:
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to