[lto] add direct-to-ELF serialization to lto1

Ollie Wild aaw@google.com
Thu Jun 26 17:57:00 GMT 2008


On Thu, Jun 26, 2008 at 5:48 AM, Diego Novillo <dnovillo@google.com> wrote:
>
> I don't understand this.  Why not use langhooks instead of using another hook mechanism?  It's the same thing, but it seems to me that it'd be more natural to just use the langhooks harness that we already have.

One reason is because we will likely end up with multiple
implementations for the various object file formats (think Apple).
Having a dynamic registration facility simplifies this.  Otherwise,
the langhooks will end up being replaced by switch statements which
call the *real* langhooks.

Ollie



More information about the Gcc-patches mailing list