llvm-project/lldb/source/Plugins
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
..
ABI [ARC] Add SystemV ABI 2019-10-17 15:18:03 +00:00
Architecture [Logging] Replace Log::Printf with LLDB_LOG macro (NFC) 2019-07-24 17:56:10 +00:00
Disassembler Add arm64_32 support to lldb, an ILP32 codegen 2019-10-16 19:14:49 +00:00
DynamicLoader Add arm64_32 support to lldb, an ILP32 codegen 2019-10-16 19:14:49 +00:00
ExpressionParser Add arm64_32 support to lldb, an ILP32 codegen 2019-10-16 19:14:49 +00:00
Instruction Add arm64_32 support to lldb, an ILP32 codegen 2019-10-16 19:14:49 +00:00
InstrumentationRuntime remove File::SetStream(), make new files instead. 2019-09-27 14:33:35 +00:00
JITLoader Format OptionEnumValueElement (NFC) 2019-08-02 00:18:44 +00:00
Language [LLDB] Fix for regression of test 'TestDataFormatterInvalidStdUniquePtr.py' introduced in r374195 2019-10-09 21:15:48 +00:00
LanguageRuntime [lldb][NFC] Remove strange bool parameter from Searcher::SearchCallback 2019-10-10 11:26:51 +00:00
MemoryHistory [Process] Remove unused field from HistoryThread 2019-06-19 21:33:44 +00:00
ObjectContainer [ObjectContainerBSDArchive] Simplify a few things (NFC) 2019-07-12 20:08:41 +00:00
ObjectFile Add arm64_32 support to lldb, an ILP32 codegen 2019-10-16 19:14:49 +00:00
OperatingSystem Fix a comment which was incorrect. 2019-08-08 20:47:40 +00:00
Platform Add arm64_32 support to lldb, an ILP32 codegen 2019-10-16 19:14:49 +00:00
Process [ARC] Basic support in gdb-remote process plugin 2019-10-17 15:16:21 +00:00
ScriptInterpreter delete SWIG typemaps for FILE* 2019-10-17 01:35:22 +00:00
StructuredData [lldb][NFC] Remove dead code that handles situations where LLDB has no dummy target 2019-08-26 18:12:44 +00:00
SymbolFile [lldb] Don't emit artificial constructor declarations as global functions 2019-10-17 18:16:50 +00:00
SymbolVendor SymbolVendorELF: Perform build-id lookup even without a debug link 2019-08-06 08:18:39 +00:00
SystemRuntime Long timeouts for the MacOSX SystemRuntime plugins under ASAN; else quick. 2019-09-07 01:38:37 +00:00
UnwindAssembly Fix the unwinding plan augmentation from x86 assembly 2019-10-10 13:23:09 +00:00
CMakeLists.txt Move StopInfoOverride callback to the new architecture plugin 2017-10-25 21:05:31 +00:00