[llvm-commits] [llvm] r62638 - in /llvm/trunk: include/llvm/Analysis/DebugInfo.h lib/CodeGen/AsmPrinter/DwarfWriter.cpp
Devang Patel
dpatel at apple.com
Tue Jan 20 16:08:04 PST 2009
Author: dpatel
Date: Tue Jan 20 18:08:04 2009
New Revision: 62638
URL: http://llvm.org/viewvc/llvm-project?rev=62638&view=rev
Log:
Encode member accessibility.
Modified:
llvm/trunk/include/llvm/Analysis/DebugInfo.h
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
Modified: llvm/trunk/include/llvm/Analysis/DebugInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/DebugInfo.h?rev=62638&r1=62637&r2=62638&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/DebugInfo.h (original)
+++ llvm/trunk/include/llvm/Analysis/DebugInfo.h Tue Jan 20 18:08:04 2009
@@ -133,7 +133,7 @@
enum {
FlagPrivate = 1 << 0,
FlagProtected = 1 << 1,
- FlagFwdDecl = 1 << 2
+ FlagFwdDecl = 1 << 2
};
protected:
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp?rev=62638&r1=62637&r2=62638&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp Tue Jan 20 18:08:04 2009
@@ -1913,7 +1913,11 @@
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;
}
More information about the llvm-commits
mailing list