[llvm-commits] Add to RuntimeDyld support different object formats

Jim Grosbach grosbach at apple.com
Sun Jul 3 00:40:52 PDT 2011



On Jul 2, 2011, at 9:41 PM, Eli Friedman <eli.friedman at gmail.com> wrote:

> On Fri, Jul 1, 2011 at 12:55 AM, Danil Malyshev
> <dmalyshev at accesssoftek.com> wrote:
>> Hello everyone,
>> 
>> 
>> 
>> Please find attached the patch for review.
>> 
>> This patch re-factors the RuntimeDyldImpl to support multiple formats as
>> following:
>> 
>> 
>> 
>> All MachO-specific code has been moved to a new MachODyldImpl class which
>> derives from RuntimeDyldImpl.
>> Changed RuntimeDyldImpl class to keep only code common for all formats.
>> Changed RuntimeDyld::loadObject() to figure out the given object format and
>> instantiate a specific implementation (for now only MachO is supported, but
>> I’ll add implementation for ELF in the coming patches).
>> 
>> 
>> 
>> How does it look?
> 
> Since you haven't gotten a response, I'll say that the concept looks
> fine.  Please generate the patch on top of a couple svn copy's from
> RuntimeDyld.cpp to MachODyldImpl.cpp/RuntimeDyldImpl.h to preserve the
> history from the original files.  Otherwise, looks fine to me.
> 
> It would be nice if Jim could comment on this, since he wrote most of
> this code, althought i he might not be checking email over the July 4
> weekend.

Planning on it.  As you surmise, I'm pretty tied up over the weekend, but I'm definitely panning on giving is a look as soon as I can. Thanks, danil, for contributing to this. It's great to see the mcjit getting broader attention.

Jim



More information about the llvm-commits mailing list