LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 33899 - [codeview] emit source language information for the D programming language
Summary: [codeview] emit source language information for the D programming language
Status: RESOLVED FIXED
Alias: None
Product: new-bugs
Classification: Unclassified
Component: new bugs (show other bugs)
Version: trunk
Hardware: PC Windows NT
: P enhancement
Assignee: Unassigned LLVM Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-23 01:34 PDT by Rainer Schuetze
Modified: 2017-07-24 09:58 PDT (History)
2 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Schuetze 2017-07-23 01:34:05 PDT
When generating CodeView debug information, LLVM emits SourceLanguage::Masm for any unsupported source language (see AsmPrinter/CodeViewDebug.cpp, function MapDWLangToCVLang). The Visual Studio debugger falls back to the C++ engine for this which is ok for many languages. But the D programming language has debugger support (http://rainers.github.io/visuald/visuald/Debugging.html#concord) that is loaded by the VS debugger depending on the source language found in the debug information.

Unfortunately, I haven't been able to draw Microsofts attention to adding a constant to the respective headers (https://github.com/Microsoft/microsoft-pdb/issues/21). 

Would it still be possible to add a D specific source language identifier to the CodeView output for dwarf::DW_LANG_D, so that the LLVM based D compiler could benefit from this integration, too? The reference compiler emits constant 'D' (0x44) as the source language.
Comment 1 Reid Kleckner 2017-07-24 09:30:31 PDT
Sure, r308890
Comment 2 Rainer Schuetze 2017-07-24 09:58:50 PDT
Cool, thanks!