[cfe-dev] Is ModuleBuilder useful to anyone?
Yaron Keren
yaron.keren at gmail.com
Tue Dec 30 06:12:05 PST 2014
I am trying to eliminate the consumer of consumer pattern we have where
BackendConsumer is mostly a thin layer around a ModuleBuilder it creates
for itself. Most of the additional functionality being in
HandleTranslationUnit calling EmitBackendOutput to create bc, ll or object
files. Most the input aguments of BackendConsumer are needed for
CreateLLVMCodeGen only.
EmitBackendOutput already supports a "Backend_EmitNothing" action. If we
merge BackendConsumer functionality into ModuleBuilder and
eliminate BackendConsumer , I think that every existing ModuleBuilder could
continue using "new" ModuleBuilder with Action = Backend_EmitNothing and OS
= nullptr just the same.
Mark, would that work for you?
2014-12-30 15:18 GMT+02:00 Rafael EspĂndola <rafael.espindola at gmail.com>:
> On 30 December 2014 at 06:34, Yaron Keren <yaron.keren at gmail.com> wrote:
> > True, I checked now and cling uses the ModuleBuilder. It can't switch to
> > BackendConsumer as it's still using the old JIT.
>
> The old JIT has been removed, so that should not hold a decision on
> what to do on trunk.
>
> Cheers,
> Rafael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20141230/0345026b/attachment.html>
More information about the cfe-dev
mailing list