Recent changes broke IntelJITEventListener and its unit test. The patch fixes the breaks and eliminates a gcc warning.
Summary of changes:
- Change take() to release(), because MockWrapper went from being an OwningPtr to a std::unique_ptr.
- Repair form of loop since r200442 removed content_iterator::increment. The change mimics a similar change made by r200442 to lib/DebugInfo/DWARFContext.cpp
- Use a const_cast instead of C-style cast to shut up a warning from gcc.
- Arch