From: Eric Christopher Date: Tue, 12 May 2015 00:04:20 +0000 (+0000) Subject: Update initialization of a class variable and comment. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=de0b5445e06ef32f913f4fa524b7b454275cdde7;p=clang Update initialization of a class variable and comment. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@237071 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index 9c09942ba1..fe37caa83b 100644 --- a/lib/Basic/Targets.cpp +++ b/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;