summaryrefslogtreecommitdiff
path: root/lib/Target/Mips/MipsSubtarget.cpp
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2008-08-08 04:49:42 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2008-08-08 04:49:42 +0000
commitf131fa26e6eca719e793e2fc7fe750040e9357a6 (patch)
treec35cbfc3e15379470f10f71430dd37c3a87df831 /lib/Target/Mips/MipsSubtarget.cpp
parentab243df91f43c68fb55f5122afd06a1359cb0604 (diff)
downloadllvm-f131fa26e6eca719e793e2fc7fe750040e9357a6.tar.gz
llvm-f131fa26e6eca719e793e2fc7fe750040e9357a6.tar.bz2
llvm-f131fa26e6eca719e793e2fc7fe750040e9357a6.tar.xz
Match raw "psp" triple target, as done by the homebrew toolchain.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54514 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsSubtarget.cpp')
-rw-r--r--lib/Target/Mips/MipsSubtarget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/Mips/MipsSubtarget.cpp b/lib/Target/Mips/MipsSubtarget.cpp
index 29d869b8bd..d8c0797027 100644
--- a/lib/Target/Mips/MipsSubtarget.cpp
+++ b/lib/Target/Mips/MipsSubtarget.cpp
@@ -50,7 +50,8 @@ MipsSubtarget::MipsSubtarget(const TargetMachine &TM, const Module &M,
// a allegrex target, set the features. We also match
// big and little endian allegrex cores (dont really
// know if a big one exists)
- if (TT.find("mipsallegrex") != std::string::npos) {
+ if (TT.find("mipsallegrex") != std::string::npos ||
+ TT.find("psp") != std::string::npos) {
MipsABI = EABI;
IsSingleFloat = true;
MipsArchVersion = Mips2;