[LLVMdev] DWARF DW_AT_language in LLVM

Peter Housel housel at acm.org
Wed Feb 23 13:32:35 PST 2011


Is there any good reason for using DW_FORM_data1 for the DW_AT_language
attribute of DW_TAG_compile_unit? This prevents using language codes in
the DW_LANG_lo_user=0x8000 to DW_LANG_hi_user=0xffff range.

I think the obvious change to use DW_FORM_data2 in line 1897 of
lib/CodeGen/AsmPrinter/DwarfDebug.cpp should fix it. Or, if there are
binary compatibility issues, the abbrev form could be chosen
conditionally. Are there?

Thanks
-Peter S. Housel-  housel at acm.org





More information about the llvm-dev mailing list