From 5eaf3815c07c0ac2acd4bd89a28cd9296619fe9b Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Tue, 12 May 2015 00:04:20 +0000 Subject: [PATCH] Update initialization of a class variable and comment. llvm-svn: 237071 --- clang/lib/Basic/Targets.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index 9c09942..fe37caa 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -5349,11 +5349,13 @@ class SparcTargetInfo : public TargetInfo { static const char * const GCCRegNames[]; bool SoftFloat; public: - SparcTargetInfo(const llvm::Triple &Triple) : TargetInfo(Triple) {} + SparcTargetInfo(const llvm::Triple &Triple) + : TargetInfo(Triple), SoftFloat(false) {} bool handleTargetFeatures(std::vector &Features, DiagnosticsEngine &Diags) override { - SoftFloat = false; + // The backend doesn't actually handle soft float yet, but in case someone + // is using the support for the front end continue to support it. auto Feature = std::find(Features.begin(), Features.end(), "+soft-float"); if (Feature != Features.end()) { SoftFloat = true; -- 2.7.4