summaryrefslogtreecommitdiffstats
path: root/clang/include
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2016-10-21 18:55:07 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2016-10-21 18:55:07 +0000
commit33e9760376190428a6f12641c608215e3571b7a7 (patch)
tree04c8c7b6ef183e84f3a377e4030d05e72666cde7 /clang/include
parent08602594344873fb9e80fb86c30c03a40f7c49a7 (diff)
downloadbcm5719-llvm-33e9760376190428a6f12641c608215e3571b7a7.tar.gz
bcm5719-llvm-33e9760376190428a6f12641c608215e3571b7a7.zip
Remove move constructors that are identical to the generated default move ctor.
llvm-svn: 284856
Diffstat (limited to 'clang/include')
-rw-r--r--clang/include/clang/Analysis/Analyses/Consumed.h5
-rw-r--r--clang/include/clang/Analysis/Analyses/ThreadSafetyCommon.h21
-rw-r--r--clang/include/clang/Frontend/ASTUnit.h3
-rw-r--r--clang/include/clang/Lex/Preprocessor.h8
-rw-r--r--clang/include/clang/Sema/Sema.h13
5 files changed, 2 insertions, 48 deletions
diff --git a/clang/include/clang/Analysis/Analyses/Consumed.h b/clang/include/clang/Analysis/Analyses/Consumed.h
index 1f5aa12111c..c0fc02724f0 100644
--- a/clang/include/clang/Analysis/Analyses/Consumed.h
+++ b/clang/include/clang/Analysis/Analyses/Consumed.h
@@ -201,11 +201,6 @@ namespace consumed {
public:
ConsumedBlockInfo() = default;
- ConsumedBlockInfo &operator=(ConsumedBlockInfo &&Other) {
- StateMapsArray = std::move(Other.StateMapsArray);
- VisitOrder = std::move(Other.VisitOrder);
- return *this;
- }
ConsumedBlockInfo(unsigned int NumBlocks, PostOrderCFGView *SortedGraph)
: StateMapsArray(NumBlocks), VisitOrder(NumBlocks, 0) {
diff --git a/clang/include/clang/Analysis/Analyses/ThreadSafetyCommon.h b/clang/include/clang/Analysis/Analyses/ThreadSafetyCommon.h
index e3570130c2c..8c1d1da554b 100644
--- a/clang/include/clang/Analysis/Analyses/ThreadSafetyCommon.h
+++ b/clang/include/clang/Analysis/Analyses/ThreadSafetyCommon.h
@@ -415,25 +415,8 @@ private:
BlockInfo()
: HasBackEdges(false), UnprocessedSuccessors(0),
ProcessedPredecessors(0) {}
- BlockInfo(BlockInfo &&RHS)
- : ExitMap(std::move(RHS.ExitMap)),
- HasBackEdges(RHS.HasBackEdges),
- UnprocessedSuccessors(RHS.UnprocessedSuccessors),
- ProcessedPredecessors(RHS.ProcessedPredecessors) {}
-
- BlockInfo &operator=(BlockInfo &&RHS) {
- if (this != &RHS) {
- ExitMap = std::move(RHS.ExitMap);
- HasBackEdges = RHS.HasBackEdges;
- UnprocessedSuccessors = RHS.UnprocessedSuccessors;
- ProcessedPredecessors = RHS.ProcessedPredecessors;
- }
- return *this;
- }
-
- private:
- BlockInfo(const BlockInfo &) = delete;
- void operator=(const BlockInfo &) = delete;
+ BlockInfo(BlockInfo &&) = default;
+ BlockInfo &operator=(BlockInfo &&) = default;
};
// We implement the CFGVisitor API
diff --git a/clang/include/clang/Frontend/ASTUnit.h b/clang/include/clang/Frontend/ASTUnit.h
index 2791227dcdf..cc8d4e6e3e7 100644
--- a/clang/include/clang/Frontend/ASTUnit.h
+++ b/clang/include/clang/Frontend/ASTUnit.h
@@ -432,9 +432,6 @@ private:
bool PreambleEndsAtStartOfLine)
: Buffer(Buffer), Owner(std::move(Owner)), Size(Size),
PreambleEndsAtStartOfLine(PreambleEndsAtStartOfLine) {}
- ComputedPreamble(ComputedPreamble &&C)
- : Buffer(C.Buffer), Owner(std::move(C.Owner)), Size(C.Size),
- PreambleEndsAtStartOfLine(C.PreambleEndsAtStartOfLine) {}
};
ComputedPreamble ComputePreamble(CompilerInvocation &Invocation,
unsigned MaxLines);
diff --git a/clang/include/clang/Lex/Preprocessor.h b/clang/include/clang/Lex/Preprocessor.h
index 60add770b59..cbe6538917f 100644
--- a/clang/include/clang/Lex/Preprocessor.h
+++ b/clang/include/clang/Lex/Preprocessor.h
@@ -350,14 +350,6 @@ class Preprocessor : public RefCountedBase<Preprocessor> {
ThePPLexer(std::move(ThePPLexer)),
TheTokenLexer(std::move(TheTokenLexer)),
TheDirLookup(std::move(TheDirLookup)) {}
- IncludeStackInfo(IncludeStackInfo &&RHS)
- : CurLexerKind(std::move(RHS.CurLexerKind)),
- TheSubmodule(std::move(RHS.TheSubmodule)),
- TheLexer(std::move(RHS.TheLexer)),
- ThePTHLexer(std::move(RHS.ThePTHLexer)),
- ThePPLexer(std::move(RHS.ThePPLexer)),
- TheTokenLexer(std::move(RHS.TheTokenLexer)),
- TheDirLookup(std::move(RHS.TheDirLookup)) {}
};
std::vector<IncludeStackInfo> IncludeMacroStack;
diff --git a/clang/include/clang/Sema/Sema.h b/clang/include/clang/Sema/Sema.h
index 8b81b40335c..70db36f2bf3 100644
--- a/clang/include/clang/Sema/Sema.h
+++ b/clang/include/clang/Sema/Sema.h
@@ -896,19 +896,6 @@ public:
NumTypos(0),
ManglingContextDecl(ManglingContextDecl), MangleNumbering() { }
- // FIXME: This is here only to make MSVC 2013 happy. Remove it and rely on
- // the default move constructor once MSVC 2013 is gone.
- ExpressionEvaluationContextRecord(ExpressionEvaluationContextRecord &&E)
- : Context(E.Context), ParentCleanup(E.ParentCleanup),
- IsDecltype(E.IsDecltype), NumCleanupObjects(E.NumCleanupObjects),
- NumTypos(E.NumTypos),
- SavedMaybeODRUseExprs(std::move(E.SavedMaybeODRUseExprs)),
- Lambdas(std::move(E.Lambdas)),
- ManglingContextDecl(E.ManglingContextDecl),
- MangleNumbering(std::move(E.MangleNumbering)),
- DelayedDecltypeCalls(std::move(E.DelayedDecltypeCalls)),
- DelayedDecltypeBinds(std::move(E.DelayedDecltypeBinds)) {}
-
/// \brief Retrieve the mangling numbering context, used to consistently
/// number constructs like lambdas for mangling.
MangleNumberingContext &getMangleNumberingContext(ASTContext &Ctx);
OpenPOWER on IntegriCloud