summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-objdump
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2014-01-15 22:04:35 +0000
committerQuentin Colombet <qcolombet@apple.com>2014-01-15 22:04:35 +0000
commit5fa1f6f57ab71e3e590626ec8d714ba4167fba2d (patch)
tree29486ff314586b0cc70398ba89d790fa31b2d2f0 /llvm/tools/llvm-objdump
parentf8d5da6e0b694408aca7af2e66759673db2a9c88 (diff)
downloadbcm5719-llvm-5fa1f6f57ab71e3e590626ec8d714ba4167fba2d.tar.gz
bcm5719-llvm-5fa1f6f57ab71e3e590626ec8d714ba4167fba2d.zip
[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> llvm-svn: 199338
Diffstat (limited to 'llvm/tools/llvm-objdump')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud