Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1268)

Side by Side Diff: lib/Support/Triple.cpp

Issue 7484050: Add initial support for *-*-nacl target. (Closed) Base URL: http://llvm.org/svn/llvm-project/llvm/trunk/
Patch Set: Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« autoconf/configure.ac ('K') | « include/llvm/ADT/Triple.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 case MacOSX: return "macosx"; 107 case MacOSX: return "macosx";
108 case MinGW32: return "mingw32"; 108 case MinGW32: return "mingw32";
109 case NetBSD: return "netbsd"; 109 case NetBSD: return "netbsd";
110 case OpenBSD: return "openbsd"; 110 case OpenBSD: return "openbsd";
111 case Psp: return "psp"; 111 case Psp: return "psp";
112 case Solaris: return "solaris"; 112 case Solaris: return "solaris";
113 case Win32: return "win32"; 113 case Win32: return "win32";
114 case Haiku: return "haiku"; 114 case Haiku: return "haiku";
115 case Minix: return "minix"; 115 case Minix: return "minix";
116 case RTEMS: return "rtems"; 116 case RTEMS: return "rtems";
117 case NativeClient: return "nacl";
117 } 118 }
118 119
119 return "<invalid>"; 120 return "<invalid>";
120 } 121 }
121 122
122 const char *Triple::getEnvironmentTypeName(EnvironmentType Kind) { 123 const char *Triple::getEnvironmentTypeName(EnvironmentType Kind) {
123 switch (Kind) { 124 switch (Kind) {
124 case UnknownEnvironment: return "unknown"; 125 case UnknownEnvironment: return "unknown";
125 case GNU: return "gnu"; 126 case GNU: return "gnu";
126 case GNUEABI: return "gnueabi"; 127 case GNUEABI: return "gnueabi";
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 } 634 }
634 635
635 void Triple::setEnvironmentName(StringRef Str) { 636 void Triple::setEnvironmentName(StringRef Str) {
636 setTriple(getArchName() + "-" + getVendorName() + "-" + getOSName() + 637 setTriple(getArchName() + "-" + getVendorName() + "-" + getOSName() +
637 "-" + Str); 638 "-" + Str);
638 } 639 }
639 640
640 void Triple::setOSAndEnvironmentName(StringRef Str) { 641 void Triple::setOSAndEnvironmentName(StringRef Str) {
641 setTriple(getArchName() + "-" + getVendorName() + "-" + Str); 642 setTriple(getArchName() + "-" + getVendorName() + "-" + Str);
642 } 643 }
OLDNEW
« autoconf/configure.ac ('K') | « include/llvm/ADT/Triple.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698