[PATCH] Recognize sparc64 target triple

Brad Smith brad at comstyle.com
Fri Apr 26 16:49:58 PDT 2013


The attached patch allows LLVM to recognize a target triple using
sparc64 as the architecture, such as OpenBSD/sparc64, as an alias
for the sparcv9 backend.

error: unknown target triple 'sparc64-unknown-openbsd5.3', please use -triple or -arch

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-------------- next part --------------
Index: lib/Support/Triple.cpp
===================================================================
--- lib/Support/Triple.cpp	(revision 180057)
+++ lib/Support/Triple.cpp	(working copy)
@@ -234,7 +234,7 @@
     .Case("r600", Triple::r600)
     .Case("hexagon", Triple::hexagon)
     .Case("sparc", Triple::sparc)
-    .Case("sparcv9", Triple::sparcv9)
+    .Cases("sparc64", "sparcv9", Triple::sparcv9)
     .Case("tce", Triple::tce)
     .Case("xcore", Triple::xcore)
     .Case("nvptx", Triple::nvptx)


More information about the llvm-commits mailing list