[LLVMdev] LLVM asserts

David Greene dag at cray.com
Wed Aug 19 14:57:04 PDT 2009


On Wednesday 19 August 2009 16:43, Eli Friedman wrote:

> > We're dealing with this, but it's not a particularly friendly way to
> > operate.  Most compilers have some kind of error reporting mechanism
> > and it would be helpful if LLVM provided a way to turn asserts and
> > aborts into hooks that could be plugged into an existing infrastructure.
> >
> > Signal handlers aren't the best solution.  Like I said, we're dealing
> > with it but it's something we should be aware of long-term.
>
> C++ isn't a safe language; there is in fact such a thing as an
> unrecoverable error, and there isn't really anything we can do about
> it.

It's not about recovery, it's about message reporting.  Right now the LLVM
abort messages are formatted completely differently than aborts from other
parts of our compiler.  That's not friendly to users.

                                   -Dave




More information about the llvm-dev mailing list