From e3f3ca70e6e9418ec965a4bec025ce7c0bfcd33a Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Sun, 15 Nov 2009 10:18:17 +0000 Subject: [PATCH] Add PSP OS Target to Triple, Credit to Bruno Cardoso Lopes. llvm-svn: 88849 --- llvm/include/llvm/ADT/Triple.h | 1 + llvm/lib/Support/Triple.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/llvm/include/llvm/ADT/Triple.h b/llvm/include/llvm/ADT/Triple.h index bf4dfee71473..c59f79e17b06 100644 --- a/llvm/include/llvm/ADT/Triple.h +++ b/llvm/include/llvm/ADT/Triple.h @@ -94,6 +94,7 @@ public: MinGW64, NetBSD, OpenBSD, + Psp, Solaris, Win32, Haiku diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp index 73e6bd3828f9..40f055f46232 100644 --- a/llvm/lib/Support/Triple.cpp +++ b/llvm/lib/Support/Triple.cpp @@ -94,6 +94,7 @@ const char *Triple::getOSTypeName(OSType Kind) { case MinGW64: return "mingw64"; case NetBSD: return "netbsd"; case OpenBSD: return "openbsd"; + case Psp: return "psp"; case Solaris: return "solaris"; case Win32: return "win32"; case Haiku: return "haiku"; @@ -273,6 +274,8 @@ void Triple::Parse() const { OS = NetBSD; else if (OSName.startswith("openbsd")) OS = OpenBSD; + else if (OSName.startswith("psp")) + OS = Psp; else if (OSName.startswith("solaris")) OS = Solaris; else if (OSName.startswith("win32"))