aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/BuildID.cpp
diff options
context:
space:
mode:
authorMichael Buch <michaelbuch12@gmail.com>2025-10-03 23:15:38 +0100
committerGitHub <noreply@github.com>2025-10-03 23:15:38 +0100
commit7f51a2a47d2e706d04855b0e41690ebafa2b3238 (patch)
tree960b6a12005e9d9a4be359d950197405e948ae42 /llvm/lib/Object/BuildID.cpp
parentfb458aa91f8fa614086e855ab29749e81e834194 (diff)
downloadllvm-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