Error CVSymbolDumperImpl::visitKnownRecord( CVSymbol &CVR, HeapAllocationSiteSym &HeapAllocSite) { StringRef LinkageName; if (ObjDelegate) { ObjDelegate->printRelocatedField("CodeOffset", HeapAllocSite.getRelocationOffset(), HeapAllocSite.CodeOffset, &LinkageName); } W.printHex("Segment", HeapAllocSite.Segment); W.printHex("CallInstructionSize", HeapAllocSite.CallInstructionSize); printTypeIndex("Type", HeapAllocSite.Type); if (!LinkageName.empty()) W.printString("LinkageName", LinkageName); return Error::success(); }
void CVSymbolDumperImpl::visitHeapAllocationSiteSym( SymbolKind Kind, HeapAllocationSiteSym &HeapAllocSite) { DictScope S(W, "HeapAllocationSite"); StringRef LinkageName; if (ObjDelegate) { ObjDelegate->printRelocatedField( "CodeOffset", HeapAllocSite.getRelocationOffset(), HeapAllocSite.Header.CodeOffset, &LinkageName); } W.printHex("Segment", HeapAllocSite.Header.Segment); W.printHex("CallInstructionSize", HeapAllocSite.Header.CallInstructionSize); CVTD.printTypeIndex("Type", HeapAllocSite.Header.Type); if (!LinkageName.empty()) W.printString("LinkageName", LinkageName); }