[LLVMdev] Verifier & abort()
Misha Brukman
brukman at uiuc.edu
Thu Apr 1 20:05:02 PST 2004
On Thu, Apr 01, 2004 at 05:54:27PM -0800, Reid Spencer wrote:
> Would anyone mind if I changed the Verifier to allow installation of a
> failure handler function that defaults to abort()? I would also like
> to change the verifier to print to an arbitrary iostream instead of
> always to std::cerr. This will help me capture the verifier's output
> and produce it to the user within an "ICE" message. Again, the default
> would be std::cerr so if you don't use the new api, the current
> behavior is retained.
Perhaps another solution would be to throw an exception with the error
message?
--
Misha Brukman :: http://misha.brukman.net :: http://llvm.cs.uiuc.edu
More information about the llvm-dev
mailing list