[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.

llvm-svn: 203448
This commit is contained in:
Chandler Carruth 2014-03-10 08:08:59 +00:00
parent fdb30c6e0e
commit 6c25ca87a0
1 changed files with 6 additions and 0 deletions

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()); }