OLD | NEW |
1 //===--- Triple.cpp - Target triple helper class --------------------------===// | 1 //===--- Triple.cpp - Target triple helper class --------------------------===// |
2 // | 2 // |
3 // The LLVM Compiler Infrastructure | 3 // The LLVM Compiler Infrastructure |
4 // | 4 // |
5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
7 // | 7 // |
8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
9 | 9 |
10 #include "llvm/ADT/Triple.h" | 10 #include "llvm/ADT/Triple.h" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 case MacOSX: return "macosx"; | 103 case MacOSX: return "macosx"; |
104 case MinGW32: return "mingw32"; | 104 case MinGW32: return "mingw32"; |
105 case NetBSD: return "netbsd"; | 105 case NetBSD: return "netbsd"; |
106 case OpenBSD: return "openbsd"; | 106 case OpenBSD: return "openbsd"; |
107 case Psp: return "psp"; | 107 case Psp: return "psp"; |
108 case Solaris: return "solaris"; | 108 case Solaris: return "solaris"; |
109 case Win32: return "win32"; | 109 case Win32: return "win32"; |
110 case Haiku: return "haiku"; | 110 case Haiku: return "haiku"; |
111 case Minix: return "minix"; | 111 case Minix: return "minix"; |
112 case RTEMS: return "rtems"; | 112 case RTEMS: return "rtems"; |
| 113 case NativeClient: return "nacl"; |
113 } | 114 } |
114 | 115 |
115 return "<invalid>"; | 116 return "<invalid>"; |
116 } | 117 } |
117 | 118 |
118 const char *Triple::getEnvironmentTypeName(EnvironmentType Kind) { | 119 const char *Triple::getEnvironmentTypeName(EnvironmentType Kind) { |
119 switch (Kind) { | 120 switch (Kind) { |
120 case UnknownEnvironment: return "unknown"; | 121 case UnknownEnvironment: return "unknown"; |
121 case GNU: return "gnu"; | 122 case GNU: return "gnu"; |
122 case GNUEABI: return "gnueabi"; | 123 case GNUEABI: return "gnueabi"; |
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
632 } | 633 } |
633 | 634 |
634 void Triple::setEnvironmentName(StringRef Str) { | 635 void Triple::setEnvironmentName(StringRef Str) { |
635 setTriple(getArchName() + "-" + getVendorName() + "-" + getOSName() + | 636 setTriple(getArchName() + "-" + getVendorName() + "-" + getOSName() + |
636 "-" + Str); | 637 "-" + Str); |
637 } | 638 } |
638 | 639 |
639 void Triple::setOSAndEnvironmentName(StringRef Str) { | 640 void Triple::setOSAndEnvironmentName(StringRef Str) { |
640 setTriple(getArchName() + "-" + getVendorName() + "-" + Str); | 641 setTriple(getArchName() + "-" + getVendorName() + "-" + Str); |
641 } | 642 } |
OLD | NEW |