gallium/radeon: send LLVM diagnostics as debug messages
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 2 Jan 2016 21:40:47 +0000 (16:40 -0500)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 2 Jan 2016 21:47:24 +0000 (16:47 -0500)
commit8f384d07a8b1cbaae0999aa9d0a91ba164fa2fe0
tree867a4037835dbd08bb2ed172c4b4866b1f323e09
parent255ccd1e99e2eb8ad9ae001e3796afc344ca15c8
gallium/radeon: send LLVM diagnostics as debug messages

Diagnostics sent during code generation and the every error message reported
by LLVMTargetMachineEmitToMemoryBuffer are disjoint reporting mechanisms. We
take care of both and also send an explicit message indicating failure at the
end, so that log parsers can more easily tell the boundary between shader
compiles.

Removed an fprintf that could never be triggered.

Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/radeon_llvm_emit.c