[CMake] Add compatibility and current versioning to libLTO to match autoconf support.
[oota-llvm.git] / unittests / ADT / DeltaAlgorithmTest.cpp
index 362892207f50958685efa7d27b272a6565ea732a..bed57b1a17254e1279ee34d1e849910e5abca4a0 100644 (file)
@@ -13,6 +13,8 @@
 #include <cstdarg>
 using namespace llvm;
 
+namespace std {
+
 std::ostream &operator<<(std::ostream &OS,
                          const std::set<unsigned> &S) {
   OS << "{";
@@ -26,14 +28,16 @@ std::ostream &operator<<(std::ostream &OS,
   return OS;
 }
 
+}
+
 namespace {
 
-class FixedDeltaAlgorithm : public DeltaAlgorithm {
+class FixedDeltaAlgorithm final : public DeltaAlgorithm {
   changeset_ty FailingSet;
   unsigned NumTests;
 
 protected:
-  virtual bool ExecuteOneTest(const changeset_ty &Changes) {
+  bool ExecuteOneTest(const changeset_ty &Changes) override {
     ++NumTests;
     return std::includes(Changes.begin(), Changes.end(),
                          FailingSet.begin(), FailingSet.end());