summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Triple.cpp
diff options
context:
space:
mode:
authorEli Bendersky <eliben@google.com>2012-12-04 18:37:26 +0000
committerEli Bendersky <eliben@google.com>2012-12-04 18:37:26 +0000
commitabe546368b779e6ba19dbb194500a33c58ecabaa (patch)
tree44f3013baacd07e9f231b65405ac72ffede46858 /llvm/lib/Support/Triple.cpp
parent4a7dc6e3e684449830aed0924519e080e54ff41b (diff)
downloadbcm5719-llvm-abe546368b779e6ba19dbb194500a33c58ecabaa.tar.gz
bcm5719-llvm-abe546368b779e6ba19dbb194500a33c58ecabaa.zip
Make NaCl naming consistent. The triple OSType is called NaCl and is represented
textually as NativeClient. Also added a link to the native client project for readers unfamiliar with it. A Clang patch will follow shortly. llvm-svn: 169291
Diffstat (limited to 'llvm/lib/Support/Triple.cpp')
-rw-r--r--llvm/lib/Support/Triple.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp
index 0b49ae97337..eefb96bfee0 100644
--- a/llvm/lib/Support/Triple.cpp
+++ b/llvm/lib/Support/Triple.cpp
@@ -125,7 +125,7 @@ const char *Triple::getOSTypeName(OSType Kind) {
case Haiku: return "haiku";
case Minix: return "minix";
case RTEMS: return "rtems";
- case NativeClient: return "nacl";
+ case NaCl: return "nacl";
case CNK: return "cnk";
case Bitrig: return "bitrig";
case AIX: return "aix";
@@ -272,7 +272,7 @@ static Triple::OSType parseOS(StringRef OSName) {
.StartsWith("haiku", Triple::Haiku)
.StartsWith("minix", Triple::Minix)
.StartsWith("rtems", Triple::RTEMS)
- .StartsWith("nacl", Triple::NativeClient)
+ .StartsWith("nacl", Triple::NaCl)
.StartsWith("cnk", Triple::CNK)
.StartsWith("bitrig", Triple::Bitrig)
.StartsWith("aix", Triple::AIX)
OpenPOWER on IntegriCloud