patch for problem with llvm_3_4

This patch calls createFunction with DICompositeType instead of DIType. It is required now in llvm_3_4.