Пример #1
0
Error TypeDumpVisitor::visitKnownMember(CVMemberRecord &CVR,
                                        DataMemberRecord &Field) {
  printMemberAttributes(Field.getAccess(), MethodKind::Vanilla,
                        MethodOptions::None);
  printTypeIndex("Type", Field.getType());
  W->printHex("FieldOffset", Field.getFieldOffset());
  W->printString("Name", Field.getName());
  return Error::success();
}
Пример #2
0
void CVTypeDumperImpl::visitDataMember(TypeLeafKind Leaf,
                                       DataMemberRecord &Field) {
    DictScope S(W, "DataMember");
    printMemberAttributes(Field.getAccess(), MethodKind::Vanilla,
                          MethodOptions::None);
    printTypeIndex("Type", Field.getType());
    W.printHex("FieldOffset", Field.getFieldOffset());
    W.printString("Name", Field.getName());
    Name = Field.getName();
}