Error CVSymbolDumperImpl::visitKnownRecord(CVSymbol &CVR, FrameCookieSym &FrameCookie) { StringRef LinkageName; if (ObjDelegate) { ObjDelegate->printRelocatedField("CodeOffset", FrameCookie.getRelocationOffset(), FrameCookie.CodeOffset, &LinkageName); } W.printEnum("Register", uint16_t(FrameCookie.Register), getRegisterNames()); W.printEnum("CookieKind", uint16_t(FrameCookie.CookieKind), getFrameCookieKindNames()); W.printHex("Flags", FrameCookie.Flags); return Error::success(); }
void CVSymbolDumperImpl::visitFrameCookieSym(SymbolKind Kind, FrameCookieSym &FrameCookie) { DictScope S(W, "FrameCookie"); StringRef LinkageName; if (ObjDelegate) { ObjDelegate->printRelocatedField( "CodeOffset", FrameCookie.getRelocationOffset(), FrameCookie.Header.CodeOffset, &LinkageName); } W.printHex("Register", FrameCookie.Header.Register); W.printEnum("CookieKind", uint16_t(FrameCookie.Header.CookieKind), makeArrayRef(FrameCookieKinds)); }