]> granicus.if.org Git - llvm/commitdiff
Remove duplicated default move ctors/move assign. No functional change.
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 27 Oct 2016 15:23:44 +0000 (15:23 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 27 Oct 2016 15:23:44 +0000 (15:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285302 91177308-0d34-0410-b5e6-96231b3b80d8

tools/dsymutil/DebugMap.h
tools/llvm-cov/SourceCoverageView.h

index 639f5037f47716dc1858ba71ae3280845fe53271..48828939bb602aff8dd02645713bfd9a5e08e58d 100644 (file)
@@ -176,19 +176,8 @@ private:
   DebugMapObject() = default;
 
 public:
-  DebugMapObject &operator=(DebugMapObject RHS) {
-    std::swap(Filename, RHS.Filename);
-    std::swap(Timestamp, RHS.Timestamp);
-    std::swap(Symbols, RHS.Symbols);
-    std::swap(AddressToMapping, RHS.AddressToMapping);
-    return *this;
-  }
-  DebugMapObject(DebugMapObject &&RHS) {
-    Filename = std::move(RHS.Filename);
-    Timestamp = std::move(RHS.Timestamp);
-    Symbols = std::move(RHS.Symbols);
-    AddressToMapping = std::move(RHS.AddressToMapping);
-  }
+  DebugMapObject(DebugMapObject &&) = default;
+  DebugMapObject &operator=(DebugMapObject &&) = default;
   ///@}
 };
 }
index 21672f5e7381ac1a0491656e548b565b6d6c8fcc..9cb608fed6081ae81b671c0dc6be20219a4737c2 100644 (file)
@@ -57,15 +57,6 @@ struct InstantiationView {
   InstantiationView(StringRef FunctionName, unsigned Line,
                     std::unique_ptr<SourceCoverageView> View)
       : FunctionName(FunctionName), Line(Line), View(std::move(View)) {}
-  InstantiationView(InstantiationView &&RHS)
-      : FunctionName(std::move(RHS.FunctionName)), Line(std::move(RHS.Line)),
-        View(std::move(RHS.View)) {}
-  InstantiationView &operator=(InstantiationView &&RHS) {
-    FunctionName = std::move(RHS.FunctionName);
-    Line = std::move(RHS.Line);
-    View = std::move(RHS.View);
-    return *this;
-  }
 
   friend bool operator<(const InstantiationView &LHS,
                         const InstantiationView &RHS) {