HomePhabricator

[ASTImporter] Copy Argument Passing Restrictions setting when importing a…

Authored by shafik on Apr 26 2019, 11:51 AM.

Description

[ASTImporter] Copy Argument Passing Restrictions setting when importing a CXXRecordDecl definition

Summary:
For a CXXRecordDecl the RecordDeclBits are stored in the DeclContext. Currently when we import the definition of a CXXRecordDecl via the ASTImporter we do not copy over this data.
This change will add support for copying the ArgPassingRestrictions from RecordDeclBits to fix an LLDB expression parsing bug where we would set it to not pass in registers.
Note, we did not copy over any other of the RecordDeclBits since we don't have tests for those. We know that copying over LoadedFieldsFromExternalStorage would be a error and that may be the case for others as well.

The companion LLDB review: https://reviews.llvm.org/D61146

Differential Review: https://reviews.llvm.org/D61140

llvm-svn: 359338

Details

Committed
shafikApr 26 2019, 11:51 AM
Parents
rG7ab164c4a427: [AsmPrinter] refactor to support %c w/ GlobalAddress'
Branches
Unknown
Tags
Unknown