diff options
author | Michael Buch <michaelbuch12@gmail.com> | 2025-10-03 23:23:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-10-03 22:23:08 +0000 |
commit | 2c3724419c04c3b6d918eb4c2eec00a4372d2937 (patch) | |
tree | 4392e0f0450ddeb083c59e90a8175b31db08a68b /llvm/lib/Object/BuildID.cpp | |
parent | 7f51a2a47d2e706d04855b0e41690ebafa2b3238 (diff) | |
download | llvm-2c3724419c04c3b6d918eb4c2eec00a4372d2937.zip llvm-2c3724419c04c3b6d918eb4c2eec00a4372d2937.tar.gz llvm-2c3724419c04c3b6d918eb4c2eec00a4372d2937.tar.bz2 |
[lldb][Language] Add Language::GetDisplayNameForLanguageType API (#161803)
The intention for this API is to be used when presenting language names
to the user, e.g., in expression evaluation diagnostics or LLDB errors.
Most uses of `GetNameForLanguageType` can be probably replaced with
`GetDisplayNameForLanguageType`, but that's out of scope of this PR.
This uses `llvm::dwarf::LanguageDescription` under the hood, so we would
lose the version numbers in the names. If we deem those to be important,
we could switch to an implementation that hardcodes a list of
user-friendly names with version numbers included.
The intention is to use it from
https://github.com/llvm/llvm-project/pull/161688
Depends on https://github.com/llvm/llvm-project/pull/161804
Diffstat (limited to 'llvm/lib/Object/BuildID.cpp')
0 files changed, 0 insertions, 0 deletions