diff options
author | Michael Buch <michaelbuch12@gmail.com> | 2025-10-03 23:15:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-10-03 23:15:38 +0100 |
commit | 7f51a2a47d2e706d04855b0e41690ebafa2b3238 (patch) | |
tree | 960b6a12005e9d9a4be359d950197405e948ae42 /llvm/lib/Object/BuildID.cpp | |
parent | fb458aa91f8fa614086e855ab29749e81e834194 (diff) | |
download | llvm-7f51a2a47d2e706d04855b0e41690ebafa2b3238.zip llvm-7f51a2a47d2e706d04855b0e41690ebafa2b3238.tar.gz llvm-7f51a2a47d2e706d04855b0e41690ebafa2b3238.tar.bz2 |
[lldb][Language] Simplify SourceLanguage::GetDescription (#161804)
Currently we don't benefit from the user-friendly names that
`LanguageDescription` returns because we would always use
`Language::GetNameForLanguageType`. I'm not aware of a situation where
`GetDescription` should prefer the non-human readable form of the name
with. This patch removes the call to `GetNameForLanguageType`.
`LanguageDescription` already handles languages that it doesn't know
about. For those it would return `Unknown`. The LLDB language types
should all be available via DWARF. If there are languages that don't map
cleanly between `lldb::LanguageType` and `DW_LANG`, then we should add
explicit support for that in the `SourceLanguage::SourceLanguage`
constructor.
Diffstat (limited to 'llvm/lib/Object/BuildID.cpp')
0 files changed, 0 insertions, 0 deletions