summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Atanasyan <satanasyan@mips.com>2012-04-18 12:00:11 +0000
committerSimon Atanasyan <satanasyan@mips.com>2012-04-18 12:00:11 +0000
commit8b2a5d2ac07229ce64cc04204118ce0296ea0ea7 (patch)
tree17d6e2e5958ac4bb962bb19df04c6782456b7ec5
parent241cbe488c6f48e489915e256f532e22273d1eba (diff)
MIPS: Followup to r154606. Expand list of accepted MIPS target features in the MipsTargetInfoBase::setFeatureEnabled() routine.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154998 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Basic/Targets.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp
index 5856d1ddfc..482cf8ffb5 100644
--- a/lib/Basic/Targets.cpp
+++ b/lib/Basic/Targets.cpp
@@ -3555,7 +3555,10 @@ public:
virtual bool setFeatureEnabled(llvm::StringMap<bool> &Features,
StringRef Name,
bool Enabled) const {
- if (Name == "soft-float" || Name == "single-float") {
+ if (Name == "soft-float" || Name == "single-float" ||
+ Name == "o32" || Name == "n32" || Name == "n64" || Name == "eabi" ||
+ Name == "mips32" || Name == "mips32r2" ||
+ Name == "mips64" || Name == "mips64r2") {
Features[Name] = Enabled;
return true;
}