Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add bare metal 'elf' environment

  • Loading branch information...
commit f9e049b274b4a46ee27562cb01da44e82e221650 1 parent 0f5bbcc
Sébastien Bourdeauducq authored May 29, 2012
3  include/llvm/ADT/Triple.h
@@ -106,7 +106,8 @@ class Triple {
106 106
     GNU,
107 107
     GNUEABI,
108 108
     EABI,
109  
-    MachO
  109
+    MachO,
  110
+    ELF
110 111
   };
111 112
 
112 113
 private:
3  lib/Support/Triple.cpp
@@ -128,6 +128,7 @@ const char *Triple::getEnvironmentTypeName(EnvironmentType Kind) {
128 128
   case GNUEABI: return "gnueabi";
129 129
   case EABI: return "eabi";
130 130
   case MachO: return "macho";
  131
+  case ELF: return "elf";
131 132
   }
132 133
 
133 134
   return "<invalid>";
@@ -388,6 +389,8 @@ Triple::OSType Triple::ParseOS(StringRef OSName) {
388 389
 Triple::EnvironmentType Triple::ParseEnvironment(StringRef EnvironmentName) {
389 390
   if (EnvironmentName.startswith("eabi"))
390 391
     return EABI;
  392
+  if (EnvironmentName.startswith("elf"))
  393
+    return ELF;
391 394
   else if (EnvironmentName.startswith("gnueabi"))
392 395
     return GNUEABI;
393 396
   else if (EnvironmentName.startswith("gnu"))

0 notes on commit f9e049b

Please sign in to comment.
Something went wrong with that request. Please try again.