[LCG] Make this call graph a fully regular type by giving it assignment

as well. I don't see any particular need but it imposes no cost to
support it and it makes the API cleaner.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203448 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chandler Carruth 2014-03-10 08:08:59 +00:00
parent b94ad9729b
commit 31da39e479

View File

@ -192,6 +192,12 @@ public:
/// Any other operation on G is likely to fail.
LazyCallGraph(LazyCallGraph &&G);
/// \brief Copy and move assignment.
LazyCallGraph &operator=(LazyCallGraph RHS) {
std::swap(*this, RHS);
return *this;
}
iterator begin() { return iterator(*this, EntryNodes); }
iterator end() { return iterator(*this, EntryNodes, iterator::IsAtEndT()); }