Mesa (master): gallivm: handle pointer types in lp_dump_llvmtype()
Brian Paul
brianp at kemper.freedesktop.org
Thu May 20 16:28:11 UTC 2010
Module: Mesa
Branch: master
Commit: 9226d427c3e52a34786346c7ce35a66bbeabf3fd
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9226d427c3e52a34786346c7ce35a66bbeabf3fd
Author: Brian Paul <brianp at vmware.com>
Date: Wed May 19 12:46:20 2010 -0600
gallivm: handle pointer types in lp_dump_llvmtype()
---
src/gallium/auxiliary/gallivm/lp_bld_type.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
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));
}
More information about the mesa-commit
mailing list