Calculate byte cost of inlining functions while iterating over DIEs.

There's no need to save a pointer to the dwarf.Entry for later, since
all the size information needed is already available.
Don't crash if there's no .debug_ranges section.