[llvm] r220608 - Update the error handling of lib/Linker.

Alexander Kornienko alexfh at google.com
Mon Oct 27 16:00:02 PDT 2014


On Mon, Oct 27, 2014 at 3:27 PM, Rafael EspĂ­ndola <
rafael.espindola at gmail.com> wrote:

> >> What about passing an optional diagnostic handler? If nullptr is
> >> passed, the system one is used.
> >
> >
> > That could also work. We'd still need an adapter to avoid writing a
> handler
> > function each time.
>
> What do you think of the attached patches?
>

I was also thinking about std::function ;)

Maybe add a typedef for std::function<void(const DiagnosticInfo &)>?
Otherwise looks good!


> Cheers,
> Rafael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141027/6759f404/attachment.html>


More information about the llvm-commits mailing list