llvm-project
0ede5637 - [clang][DebugInfo] Emit DW_AT_language_{name, version} for DWARFv6 (#163208)

Commit
196 days ago
[clang][DebugInfo] Emit DW_AT_language_{name, version} for DWARFv6 (#163208) Depends on: * https://github.com/llvm/llvm-project/pull/163348 * https://github.com/llvm/llvm-project/pull/162632 With this patch Clang will start emitting `DW_AT_language_{name, version}` for C++/C/Objective-C/Objective-C++ when using `-gdwarf-6`. We adjust the `DISourceLanguageName` (which we pass to `DICompileUnit`) to hold a `DW_AT_language_name_` and version code when in DWARFv6. Otherwise we continue using the `DW_LANG_` version of `DISourceLanguageName`. We didn't back-port emitting `DW_AT_language_name`/`DW_AT_language_version` to DWARFv5 (unlike GCC, which emits both the new and old language attributes in DWARFv5) because there wasn't a compelling reason to do so (yet).
Author
Parents
Loading