[PATCH] D32426: Add SUSE vendor

İsmail Dönmez via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 24 04:14:36 PDT 2017


ismail created this revision.
Herald added subscribers: rengolin, aemerson.

SUSE's ARM triples end with -gnueabi even though they are hard-float. This requires special handling of SUSE ARM triples. Hence we need a way to differentiate the SUSE as vendor. This CL adds that.


https://reviews.llvm.org/D32426

Files:
  include/llvm/ADT/Triple.h
  lib/Support/Triple.cpp


Index: lib/Support/Triple.cpp
===================================================================
--- lib/Support/Triple.cpp
+++ lib/Support/Triple.cpp
@@ -161,6 +161,7 @@
   case Myriad: return "myriad";
   case AMD: return "amd";
   case Mesa: return "mesa";
+  case SUSE: return "suse";
   }
 
   llvm_unreachable("Invalid VendorType!");
@@ -443,6 +444,7 @@
     .Case("myriad", Triple::Myriad)
     .Case("amd", Triple::AMD)
     .Case("mesa", Triple::Mesa)
+    .Case("suse", Triple::SUSE)
     .Default(Triple::UnknownVendor);
 }
 
Index: include/llvm/ADT/Triple.h
===================================================================
--- include/llvm/ADT/Triple.h
+++ include/llvm/ADT/Triple.h
@@ -140,7 +140,8 @@
     Myriad,
     AMD,
     Mesa,
-    LastVendorType = Mesa
+    SUSE,
+    LastVendorType = SUSE
   };
   enum OSType {
     UnknownOS,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32426.96375.patch
Type: text/x-patch
Size: 857 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170424/94a1c6fc/attachment.bin>


More information about the llvm-commits mailing list