gallivm: handle pointer types in lp_dump_llvmtype()
authorBrian Paul <brianp@vmware.com>
Wed, 19 May 2010 18:46:20 +0000 (12:46 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 20 May 2010 16:27:11 +0000 (10:27 -0600)
src/gallium/auxiliary/gallivm/lp_bld_type.c

index e6cd400c43f99a25266c1a8e02af04eaa6026304..aac3a57bc73383945241fcdb3a844d297e6af6ac 100644 (file)
@@ -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));
    }