sparse, llvm: Fix struct code generation
commit3b0407946777b10c3655fac2a0d5189b182aa7c0
authorPekka Enberg <penberg@kernel.org>
Mon, 24 Oct 2011 10:03:35 +0000 (24 13:03 +0300)
committerPekka Enberg <penberg@kernel.org>
Mon, 24 Oct 2011 15:35:36 +0000 (24 18:35 +0300)
tree2cfea785936fc50b7c447d474d570744f3408a9f
parentea97bb4c5221a9be275b2d93dc90354bd6081a8c
sparse, llvm: Fix struct code generation

Use LLVMGetTypeByName() to look up struct data types to fix code generation for
structs that refer to themselves.

Cc: Christopher Li <sparse@chrisli.org>
Cc: Jeff Garzik <jgarzik@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
sparse-llvm.c
validation/backend/struct.c