[lldb/IRExecutionUnit] Stop searching based on demangled names
authorPavel Labath <pavel@labath.sk>
Tue, 26 Nov 2019 15:41:26 +0000 (16:41 +0100)
committerPavel Labath <pavel@labath.sk>
Fri, 6 Dec 2019 09:17:49 +0000 (10:17 +0100)
commit0d2472ff6f604af842059d9a0098db274515a2d3
tree302909155b40fccda4aaed7707ce1d1490c67ecc
parent6e1f3170e061b16c9096a769508f0a6d7eb95b9c
[lldb/IRExecutionUnit] Stop searching based on demangled names

Summary:
This was causing problems on linux, where we'd end up calling the
deleting destructor instead of a regular one (because they have the same
demangled name), making a lot of mischief in the process.

The only place where this was necessary (according to the test suite, at
least) was to call a base structor instead of a complete one, but this
is now handled in a more targeted fashion.

TestCallOverriddenMethod is now re-enabled as it now passes reliably.

Reviewers: teemperor, JDevlieghere

Subscribers: lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D70722
lldb/packages/Python/lldbsuite/test/commands/expression/call-overridden-method/TestCallOverriddenMethod.py
lldb/source/Expression/IRExecutionUnit.cpp