diff options
| author | Edward O'Callaghan <eocallaghan@auroraux.org> | 2009-11-15 10:18:17 +0000 |
|---|---|---|
| committer | Edward O'Callaghan <eocallaghan@auroraux.org> | 2009-11-15 10:18:17 +0000 |
| commit | e3f3ca70e6e9418ec965a4bec025ce7c0bfcd33a (patch) | |
| tree | aa74ab3af5f54b21b280e5b87c623a2c96d3116a /llvm/lib/Support/Triple.cpp | |
| parent | 8f3952cda967f8f9101d245f9056cd184db184bb (diff) | |
| download | llvm-e3f3ca70e6e9418ec965a4bec025ce7c0bfcd33a.zip llvm-e3f3ca70e6e9418ec965a4bec025ce7c0bfcd33a.tar.gz llvm-e3f3ca70e6e9418ec965a4bec025ce7c0bfcd33a.tar.bz2 | |
Add PSP OS Target to Triple, Credit to Bruno Cardoso Lopes.
llvm-svn: 88849
Diffstat (limited to 'llvm/lib/Support/Triple.cpp')
| -rw-r--r-- | llvm/lib/Support/Triple.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp index 73e6bd3..40f055f 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")) |
