mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-05 10:27:02 +00:00
Encode member accessibility.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62638 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2a574669f3
commit
476615934a
@ -133,7 +133,7 @@ namespace llvm {
|
||||
enum {
|
||||
FlagPrivate = 1 << 0,
|
||||
FlagProtected = 1 << 1,
|
||||
FlagFwdDecl = 1 << 2
|
||||
FlagFwdDecl = 1 << 2
|
||||
};
|
||||
|
||||
protected:
|
||||
|
@ -1913,7 +1913,11 @@ private:
|
||||
AddUInt(Block, 0, DW_FORM_udata, DT.getOffsetInBits() >> 3);
|
||||
AddBlock(MemberDie, DW_AT_data_member_location, 0, Block);
|
||||
|
||||
// FIXME - Handle DW_AT_accessibility
|
||||
if (DT.isProtected())
|
||||
AddUInt(MemberDie, DW_AT_accessibility, 0, DW_ACCESS_protected);
|
||||
else if (DT.isPrivate())
|
||||
AddUInt(MemberDie, DW_AT_accessibility, 0, DW_ACCESS_private);
|
||||
|
||||
return MemberDie;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user