Add loc info to program and function nodes.