r237071 - Update initialization of a class variable and comment.

Eric Christopher echristo at gmail.com
Mon May 11 17:04:21 PDT 2015


Author: echristo
Date: Mon May 11 19:04:20 2015
New Revision: 237071

URL: http://llvm.org/viewvc/llvm-project?rev=237071&view=rev
Log:
Update initialization of a class variable and comment.

Modified:
    cfe/trunk/lib/Basic/Targets.cpp

Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=237071&r1=237070&r2=237071&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Mon May 11 19:04:20 2015
@@ -5349,11 +5349,13 @@ class SparcTargetInfo : public TargetInf
   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<std::string> &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;





More information about the cfe-commits mailing list