gallivm: Use LLVMPrintValueToString where available.
authorJose Fonseca <jfonseca@vmware.com>
Thu, 14 Apr 2016 10:13:55 +0000 (11:13 +0100)
committerJose Fonseca <jfonseca@vmware.com>
Tue, 19 Apr 2016 10:28:37 +0000 (11:28 +0100)
commit9aa23b11e4a25cd94cb48de74c580675577fa074
tree856efd7f50c547ec5b986ed551dcfa5cf9698bc5
parentf6621cd3be16d541f921b1b0a8cd6bc836826704
gallivm: Use LLVMPrintValueToString where available.

And llvm::raw_string_ostream where not (LLVM 3.3).

Thereby eliminating yet another dependency on unstable LLVM interfaces.

As a bonus this also gets LLVM IR on OutputDebugMessageA on MSVC (which
was disabled, probably due to C++ issues.)

Tested `lp_test_arit -v -v` on LLVM 3.3, 3.4 and 3.8.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_debug.cpp