Emit dwarf line number info using .file/.loc assembler directives on osx. Fixes #12731.