From: Brian Paul Date: Wed, 19 May 2010 18:46:20 +0000 (-0600) Subject: gallivm: handle pointer types in lp_dump_llvmtype() X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9226d427c3e52a34786346c7ce35a66bbeabf3fd;p=profile%2Fivi%2Fmesa.git gallivm: handle pointer types in lp_dump_llvmtype() --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_type.c b/src/gallium/auxiliary/gallivm/lp_bld_type.c index e6cd400..aac3a57 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_type.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_type.c @@ -354,6 +354,11 @@ lp_dump_llvmtype(LLVMTypeRef t) unsigned b = LLVMGetIntTypeWidth(t); debug_printf("%u-bit Integer\n", b); } + else if (k == LLVMPointerTypeKind) { + LLVMTypeRef te = LLVMGetElementType(t); + debug_printf("Pointer to "); + lp_dump_llvmtype(te); + } else { debug_printf("%s\n", lp_typekind_name(k)); }