HomePhabricator

[LTO] Add a hook to map LLVM diagnostics into the clients of LTO.
rL199338Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

[LTO] Add a hook to map LLVM diagnostics into the clients of LTO.

Add a hook in the C API of LTO so that clients of the code generator can set
their own handler for the LLVM diagnostics.
The handler is defined like this:
typedef void (*lto_diagnostic_handler_t)(lto_codegen_diagnostic_severity_t
severity, const char *diag, void *ctxt)

  • severity says how bad this is.
  • diag is a string that contains the diagnostic message.
  • ctxt is the registered context for this handler.

This hook is more general than the lto_get_error_message, since this function
keeps only the latest message and can only be queried when something went wrong
(no warning for instance).

rdar://problem/15517596

Details

Committed
qcolombetJan 15 2014, 2:04 PM
Parents
rL199337: Remove support for armv7f slice. <rdar://problem/12478440>
Branches
Unknown
Tags
Unknown

Event Timeline