]> granicus.if.org Git - clang/commitdiff
Update initialization of a class variable and comment.
authorEric Christopher <echristo@gmail.com>
Tue, 12 May 2015 00:04:20 +0000 (00:04 +0000)
committerEric Christopher <echristo@gmail.com>
Tue, 12 May 2015 00:04:20 +0000 (00:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@237071 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp

index 9c09942ba13c4fce9b1b7bb60dfeb68608339619..fe37caa83bd5b4c17b1eb71881f20d1599876f0d 100644 (file)
@@ -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<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;