[ABI] Fix SystemV ABI to handle nested aggregate type returned in register
authorAlex Langford <apl@fb.com>
Tue, 4 Jun 2019 19:29:59 +0000 (19:29 +0000)
committerAlex Langford <apl@fb.com>
Tue, 4 Jun 2019 19:29:59 +0000 (19:29 +0000)
commita03e2b25abfac72d2415edfef8a81ed127a95ca4
tree02075cd37d3c1bf471765a39cfe34e0ef5f26ae9
parent2e207d4d76dfc9c3b9e1d039df4f27bd9ca30076
[ABI] Fix SystemV ABI to handle nested aggregate type returned in register

Add a function to flatten the nested aggregate type

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

Patch by Wanyi Ye <kusmour@gmail.com>

llvm-svn: 362543
lldb/include/lldb/Symbol/ClangASTContext.h
lldb/include/lldb/Symbol/TypeSystem.h
lldb/packages/Python/lldbsuite/test/functionalities/return-value/Makefile
lldb/packages/Python/lldbsuite/test/functionalities/return-value/TestReturnValue.py
lldb/packages/Python/lldbsuite/test/functionalities/return-value/call-func.c [deleted file]
lldb/packages/Python/lldbsuite/test/functionalities/return-value/call-func.cpp [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/lang/cpp/trivial_abi/TestTrivialABI.py
lldb/source/Plugins/ABI/SysV-x86_64/ABISysV_x86_64.cpp
lldb/source/Symbol/ClangASTContext.cpp