gallivm: Cleanup/simplify lp_build_const_string_variable.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 23 Feb 2012 09:44:41 +0000 (09:44 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 2 May 2012 09:24:34 +0000 (10:24 +0100)
commit0005bd9da2b343accad423708eba36a00035c7ee
tree4f081d9646bf90724a1e845ad7051f9e4c77ecdf
parentc23fd547c060c4137eab0f878a1028c5903384eb
gallivm: Cleanup/simplify lp_build_const_string_variable.

- Move to lp_bld_const where it belongs
- Rename to lp_build_const_string
- take the length from the argument (and don't count the zero terminator twice)
- bitcast the constant to generic i8 *
src/gallium/auxiliary/gallivm/lp_bld_assert.c
src/gallium/auxiliary/gallivm/lp_bld_const.c
src/gallium/auxiliary/gallivm/lp_bld_const.h
src/gallium/auxiliary/gallivm/lp_bld_printf.c
src/gallium/auxiliary/gallivm/lp_bld_printf.h