From 296a7bb49f2e93ef83058a7128f6f3bf6c16378a Mon Sep 17 00:00:00 2001 From: Simon Atanasyan Date: Wed, 18 Apr 2012 12:00:11 +0000 Subject: [PATCH] MIPS: Followup to r154606. Expand list of accepted MIPS target features in the MipsTargetInfoBase::setFeatureEnabled() routine. llvm-svn: 154998 --- clang/lib/Basic/Targets.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index 5856d1ddfc6d..482cf8ffb50a 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -3555,7 +3555,10 @@ public: virtual bool setFeatureEnabled(llvm::StringMap &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; }