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

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: Reimplement patch on top of ToT Created 9 years, 4 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
« no previous file with comments | « 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « include/llvm/ADT/Triple.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698