diff options
| author | Daniel Paoliello <danpao@microsoft.com> | 2025-08-04 16:20:55 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-04 16:20:55 -0700 |
| commit | 717e753d1ef6d371d09f957f23df5c7a0e05a197 (patch) | |
| tree | 34c4375b83d4ebc1b19b6a7f06c16fd8af7ab822 /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | |
| parent | 05b52ef909475f4048e5b8cd86b3671772506682 (diff) | |
[win][arm64ec] Handle empty function names (#151609)
While testing Arm64EC, I observed that LLVM crashes when an empty
function name is used. My original fix in #151409 was to raise an error,
but this change now handles the empty name via
`Mangler::getNameWithPrefix` (which assigns a name to the function).
To get this working, I had to create the `Mangler` in
`TargetLoweringObjectFile` early so it would be available to Arm64EC's
lowering. There's no reason why `Mangler` is only created when
`Initialize` is called (or re-created if it exists), and so I moved
creation to the constructor and switched the raw pointer for a
`unique_ptr` to avoid the explicit `delete` in the destructor.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp')
0 files changed, 0 insertions, 0 deletions
