Access the TargetLoweringInfo from the TargetMachine object instead of caching it...
[oota-llvm.git] / lib / Target / TargetLibraryInfo.cpp
index c6cafe59ebd8c9d59ba0f8c35556b83fb02ce10b..d2967d929d851399ba0f19dddd75fb52f0abdc39 100644 (file)
@@ -43,6 +43,9 @@ const char* TargetLibraryInfo::StandardNames[LibFunc::NumLibFuncs] =
     "__isoc99_scanf",
     "__isoc99_sscanf",
     "__memcpy_chk",
+    "__sqrt_finite",
+    "__sqrtf_finite",
+    "__sqrtl_finite",
     "__strdup",
     "__strndup",
     "__strtok_r",
@@ -610,6 +613,9 @@ struct StringComparator {
   // Provided for compatibility with MSVC's debug mode.
   bool operator()(StringRef LHS, const char *RHS) const { return LHS < RHS; }
   bool operator()(StringRef LHS, StringRef RHS) const { return LHS < RHS; }
+  bool operator()(const char *LHS, const char *RHS) const {
+    return std::strcmp(LHS, RHS) < 0;
+  }
 };
 }