Fix printing for Functions without name

This fixes test for LLVM GPU using pointer_arith_func
8 jobs for fix-llvm-gpu in 15 minutes and 49 seconds (queued for 2 seconds)
latest