llvm-project/lldb/source
Raphael Isemann 6237c9fe6c [lldb] Don't emit artificial constructor declarations as global functions
Summary:
When we have a artificial constructor DIE, we currently create from that a global function with the name of that class.
That ends up causing a bunch of funny errors such as "must use 'struct' tag to refer to type 'Foo' in this scope" when
doing `Foo f`. Also causes that constructing a class via `Foo()` actually just calls that global function.

The fix is that when we have an artificial method decl, we always treat it as handled even if we don't create a CXXMethodDecl
for it (which we never do for artificial methods at the moment).

Fixes rdar://55757491 and probably some other radars.

Reviewers: aprantl, vsk, shafik

Reviewed By: aprantl

Subscribers: jingham, shafik, labath, JDevlieghere, lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D68130

llvm-svn: 375151
2019-10-17 18:16:50 +00:00
..
API [ARC] Add SystemV ABI 2019-10-17 15:18:03 +00:00
Breakpoint Implement serializing scripted breakpoints and their extra args. 2019-10-10 17:44:50 +00:00
Commands [Reproducer] Support dumping the reproducer CWD 2019-10-17 00:02:00 +00:00
Core [LLDB] Use the llvm microsoft demangler instead of the windows dbghelp api. NFCI. 2019-10-16 19:39:56 +00:00
DataFormatters Simplify condition (NFC) 2019-10-01 17:08:38 +00:00
Expression DWARFExpression: Fix/add support for (v4) debug_loc base address selection entries 2019-10-14 12:49:06 +00:00
Host delete SWIG typemaps for FILE* 2019-10-17 01:35:22 +00:00
Initialization [Reproducer] Surface error if setting the cwd fails 2019-10-17 17:58:44 +00:00
Interpreter Replace static const StringRef with StringRef (NFC) 2019-10-08 16:29:36 +00:00
Plugins [lldb] Don't emit artificial constructor declarations as global functions 2019-10-17 18:16:50 +00:00
Symbol Add arm64_32 support to lldb, an ILP32 codegen 2019-10-16 19:14:49 +00:00
Target [ARC] Basic support in gdb-remote process plugin 2019-10-17 15:16:21 +00:00
Utility [ARC] Basic support in gdb-remote process plugin 2019-10-17 15:16:21 +00:00
CMakeLists.txt [CMake] Remove Apple-specific version logic. 2019-04-17 18:23:22 +00:00
lldb.cpp [CMake] Remove Apple-specific version logic. 2019-04-17 18:23:22 +00:00