Beispiel #1
0
void CVTypeDumperImpl::visitOneMethod(TypeLeafKind Leaf,
                                      OneMethodRecord &Method) {
    DictScope S(W, "OneMethod");
    MethodKind K = Method.getKind();
    printMemberAttributes(Method.getAccess(), K, Method.getOptions());
    printTypeIndex("Type", Method.getType());
    // If virtual, then read the vftable offset.
    if (Method.isIntroducingVirtual())
        W.printHex("VFTableOffset", Method.getVFTableOffset());
    W.printString("Name", Method.getName());
    Name = Method.getName();
}
Beispiel #2
0
Error TypeDumpVisitor::visitKnownMember(CVMemberRecord &CVR,
                                        OneMethodRecord &Method) {
  MethodKind K = Method.getMethodKind();
  printMemberAttributes(Method.getAccess(), K, Method.getOptions());
  printTypeIndex("Type", Method.getType());
  // If virtual, then read the vftable offset.
  if (Method.isIntroducingVirtual())
    W->printHex("VFTableOffset", Method.getVFTableOffset());
  W->printString("Name", Method.getName());
  return Error::success();
}