DWARF version

Hi, I have a newbie question regarding debugging support in llvm.

Is llvm generating DWARF2 or DWARF3? The comments in the trunk source code refer to the DWARF 3 spec, but DWARF_VERSION is set to 2 in Support/Dwarf.h.

What am I missing? Thanks.

– Yuan

LLVM follows DWARF3 spec. I think, DWARF_VERSION is set to 2 for historical reasons/debugger needs.