Make ModuleList iterable.

llvm-svn: 204688
This commit is contained in:
Jim Ingham 2014-03-25 00:12:30 +00:00
parent 89299400ac
commit a0c0510845
1 changed files with 9 additions and 0 deletions

View File

@ -15,6 +15,7 @@
#include "lldb/lldb-private.h"
#include "lldb/Host/Mutex.h"
#include "lldb/Utility/Iterable.h"
namespace lldb_private {
@ -577,6 +578,14 @@ protected:
Notifier* m_notifier;
public:
typedef LockingAdaptedIterable<collection, lldb::ModuleSP, vector_adapter> ModuleIterable;
ModuleIterable
Modules()
{
return ModuleIterable(m_modules, GetMutex());
}
};
} // namespace lldb_private