diff options
author | Eric Christopher <echristo@gmail.com> | 2015-05-12 01:26:21 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2015-05-12 01:26:21 +0000 |
commit | 9e172d20f027249336859895d396ce681256e0e5 (patch) | |
tree | 5faf276755f6955c515cde5588d3cb2cbf9bffb2 /clang/lib/Basic/Targets.cpp | |
parent | 824f42f209c4b04d9f43e4b74dd601ced6409ff7 (diff) | |
download | bcm5719-llvm-9e172d20f027249336859895d396ce681256e0e5.tar.gz bcm5719-llvm-9e172d20f027249336859895d396ce681256e0e5.zip |
Remove the code that pulled soft float attributes out of the feature
strings and remove the setting of TargetOptions::UseSoftFloat to
match the code change in llvm r237079.
llvm-svn: 237080
Diffstat (limited to 'clang/lib/Basic/Targets.cpp')
-rw-r--r-- | clang/lib/Basic/Targets.cpp | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index fe37caa83bd..55f7c8c9f6b 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -4271,12 +4271,10 @@ public: Features.push_back("-neonfp"); // Remove front-end specific options which the backend handles differently. - const StringRef FrontEndFeatures[] = { "+soft-float", "+soft-float-abi" }; - for (const auto &FEFeature : FrontEndFeatures) { - auto Feature = std::find(Features.begin(), Features.end(), FEFeature); - if (Feature != Features.end()) - Features.erase(Feature); - } + auto Feature = + std::find(Features.begin(), Features.end(), "+soft-float-abi"); + if (Feature != Features.end()) + Features.erase(Feature); return true; } @@ -6149,12 +6147,6 @@ public: IsNan2008 = false; } - // Remove front-end specific options. - std::vector<std::string>::iterator it = - std::find(Features.begin(), Features.end(), "+soft-float"); - if (it != Features.end()) - Features.erase(it); - setDescriptionString(); return true; |