Lines Matching refs:DefinedAtom
78 for (const lld::DefinedAtom *atom : file.defined()) { in RefNameBuilder()
302 template <> struct ScalarEnumerationTraits<lld::DefinedAtom::SectionChoice> {
303 static void enumeration(IO &io, lld::DefinedAtom::SectionChoice &value) { in enumeration()
304 io.enumCase(value, "content", lld::DefinedAtom::sectionBasedOnContent); in enumeration()
305 io.enumCase(value, "custom", lld::DefinedAtom::sectionCustomPreferred); in enumeration()
307 lld::DefinedAtom::sectionCustomRequired); in enumeration()
311 template <> struct ScalarEnumerationTraits<lld::DefinedAtom::Interposable> {
312 static void enumeration(IO &io, lld::DefinedAtom::Interposable &value) { in enumeration()
313 io.enumCase(value, "no", DefinedAtom::interposeNo); in enumeration()
314 io.enumCase(value, "yes", DefinedAtom::interposeYes); in enumeration()
315 io.enumCase(value, "yes-and-weak", DefinedAtom::interposeYesAndRuntimeWeak); in enumeration()
319 template <> struct ScalarEnumerationTraits<lld::DefinedAtom::Merge> {
320 static void enumeration(IO &io, lld::DefinedAtom::Merge &value) { in enumeration()
321 io.enumCase(value, "no", lld::DefinedAtom::mergeNo); in enumeration()
322 io.enumCase(value, "as-tentative", lld::DefinedAtom::mergeAsTentative); in enumeration()
323 io.enumCase(value, "as-weak", lld::DefinedAtom::mergeAsWeak); in enumeration()
325 lld::DefinedAtom::mergeAsWeakAndAddressUsed); in enumeration()
326 io.enumCase(value, "by-content", lld::DefinedAtom::mergeByContent); in enumeration()
328 lld::DefinedAtom::mergeSameNameAndSize); in enumeration()
329 io.enumCase(value, "largest", lld::DefinedAtom::mergeByLargestSection); in enumeration()
333 template <> struct ScalarEnumerationTraits<lld::DefinedAtom::DeadStripKind> {
334 static void enumeration(IO &io, lld::DefinedAtom::DeadStripKind &value) { in enumeration()
335 io.enumCase(value, "normal", lld::DefinedAtom::deadStripNormal); in enumeration()
336 io.enumCase(value, "never", lld::DefinedAtom::deadStripNever); in enumeration()
337 io.enumCase(value, "always", lld::DefinedAtom::deadStripAlways); in enumeration()
341 template <> struct ScalarEnumerationTraits<lld::DefinedAtom::DynamicExport> {
342 static void enumeration(IO &io, lld::DefinedAtom::DynamicExport &value) { in enumeration()
343 io.enumCase(value, "normal", lld::DefinedAtom::dynamicExportNormal); in enumeration()
344 io.enumCase(value, "always", lld::DefinedAtom::dynamicExportAlways); in enumeration()
348 template <> struct ScalarEnumerationTraits<lld::DefinedAtom::CodeModel> {
349 static void enumeration(IO &io, lld::DefinedAtom::CodeModel &value) { in enumeration()
350 io.enumCase(value, "none", lld::DefinedAtom::codeNA); in enumeration()
351 io.enumCase(value, "mips-pic", lld::DefinedAtom::codeMipsPIC); in enumeration()
352 io.enumCase(value, "mips-micro", lld::DefinedAtom::codeMipsMicro); in enumeration()
353 io.enumCase(value, "mips-micro-pic", lld::DefinedAtom::codeMipsMicroPIC); in enumeration()
354 io.enumCase(value, "mips-16", lld::DefinedAtom::codeMips16); in enumeration()
355 io.enumCase(value, "arm-thumb", lld::DefinedAtom::codeARMThumb); in enumeration()
356 io.enumCase(value, "arm-a", lld::DefinedAtom::codeARM_a); in enumeration()
357 io.enumCase(value, "arm-d", lld::DefinedAtom::codeARM_d); in enumeration()
358 io.enumCase(value, "arm-t", lld::DefinedAtom::codeARM_t); in enumeration()
363 struct ScalarEnumerationTraits<lld::DefinedAtom::ContentPermissions> {
364 static void enumeration(IO &io, lld::DefinedAtom::ContentPermissions &value) { in enumeration()
365 io.enumCase(value, "---", lld::DefinedAtom::perm___); in enumeration()
366 io.enumCase(value, "r--", lld::DefinedAtom::permR__); in enumeration()
367 io.enumCase(value, "r-x", lld::DefinedAtom::permR_X); in enumeration()
368 io.enumCase(value, "rw-", lld::DefinedAtom::permRW_); in enumeration()
369 io.enumCase(value, "rwx", lld::DefinedAtom::permRWX); in enumeration()
370 io.enumCase(value, "rw-l", lld::DefinedAtom::permRW_L); in enumeration()
371 io.enumCase(value, "unknown", lld::DefinedAtom::permUnknown); in enumeration()
375 template <> struct ScalarEnumerationTraits<lld::DefinedAtom::ContentType> {
376 static void enumeration(IO &io, lld::DefinedAtom::ContentType &value) { in enumeration()
377 io.enumCase(value, "unknown", DefinedAtom::typeUnknown); in enumeration()
378 io.enumCase(value, "code", DefinedAtom::typeCode); in enumeration()
379 io.enumCase(value, "stub", DefinedAtom::typeStub); in enumeration()
380 io.enumCase(value, "constant", DefinedAtom::typeConstant); in enumeration()
381 io.enumCase(value, "data", DefinedAtom::typeData); in enumeration()
382 io.enumCase(value, "quick-data", DefinedAtom::typeDataFast); in enumeration()
383 io.enumCase(value, "zero-fill", DefinedAtom::typeZeroFill); in enumeration()
384 io.enumCase(value, "zero-fill-quick", DefinedAtom::typeZeroFillFast); in enumeration()
385 io.enumCase(value, "const-data", DefinedAtom::typeConstData); in enumeration()
386 io.enumCase(value, "got", DefinedAtom::typeGOT); in enumeration()
387 io.enumCase(value, "resolver", DefinedAtom::typeResolver); in enumeration()
388 io.enumCase(value, "branch-island", DefinedAtom::typeBranchIsland); in enumeration()
389 io.enumCase(value, "branch-shim", DefinedAtom::typeBranchShim); in enumeration()
390 io.enumCase(value, "stub-helper", DefinedAtom::typeStubHelper); in enumeration()
391 io.enumCase(value, "c-string", DefinedAtom::typeCString); in enumeration()
392 io.enumCase(value, "utf16-string", DefinedAtom::typeUTF16String); in enumeration()
393 io.enumCase(value, "unwind-cfi", DefinedAtom::typeCFI); in enumeration()
394 io.enumCase(value, "unwind-lsda", DefinedAtom::typeLSDA); in enumeration()
395 io.enumCase(value, "const-4-byte", DefinedAtom::typeLiteral4); in enumeration()
396 io.enumCase(value, "const-8-byte", DefinedAtom::typeLiteral8); in enumeration()
397 io.enumCase(value, "const-16-byte", DefinedAtom::typeLiteral16); in enumeration()
398 io.enumCase(value, "lazy-pointer", DefinedAtom::typeLazyPointer); in enumeration()
400 DefinedAtom::typeLazyDylibPointer); in enumeration()
401 io.enumCase(value, "cfstring", DefinedAtom::typeCFString); in enumeration()
403 DefinedAtom::typeInitializerPtr); in enumeration()
405 DefinedAtom::typeTerminatorPtr); in enumeration()
406 io.enumCase(value, "c-string-pointer",DefinedAtom::typeCStringPtr); in enumeration()
408 DefinedAtom::typeObjCClassPtr); in enumeration()
410 DefinedAtom::typeObjC2CategoryList); in enumeration()
412 DefinedAtom::typeObjCImageInfo); in enumeration()
414 DefinedAtom::typeObjCMethodList); in enumeration()
415 io.enumCase(value, "objc-class1", DefinedAtom::typeObjC1Class); in enumeration()
416 io.enumCase(value, "dtraceDOF", DefinedAtom::typeDTraceDOF); in enumeration()
418 DefinedAtom::typeInterposingTuples); in enumeration()
419 io.enumCase(value, "lto-temp", DefinedAtom::typeTempLTO); in enumeration()
420 io.enumCase(value, "compact-unwind", DefinedAtom::typeCompactUnwindInfo); in enumeration()
421 io.enumCase(value, "unwind-info", DefinedAtom::typeProcessedUnwindInfo); in enumeration()
422 io.enumCase(value, "tlv-thunk", DefinedAtom::typeThunkTLV); in enumeration()
423 io.enumCase(value, "tlv-data", DefinedAtom::typeTLVInitialData); in enumeration()
424 io.enumCase(value, "tlv-zero-fill", DefinedAtom::typeTLVInitialZeroFill); in enumeration()
426 DefinedAtom::typeTLVInitializerPtr); in enumeration()
427 io.enumCase(value, "mach_header", DefinedAtom::typeMachHeader); in enumeration()
428 io.enumCase(value, "dso_handle", DefinedAtom::typeDSOHandle); in enumeration()
429 io.enumCase(value, "sectcreate", DefinedAtom::typeSectCreate); in enumeration()
461 template <> struct ScalarTraits<lld::DefinedAtom::Alignment> {
462 static void output(const lld::DefinedAtom::Alignment &value, void *ctxt, in output()
472 lld::DefinedAtom::Alignment &value) { in input()
584 const AtomRange<lld::DefinedAtom> defined() const override { in defined()
609 for (const lld::DefinedAtom *atom : member._content->defined()) in find()
647 const AtomRange<lld::DefinedAtom> defined() const override { in defined()
681 AtomList<lld::DefinedAtom> _definedAtoms;
685 AtomRange<lld::DefinedAtom> _definedAtomsRef;
805 template <> struct MappingTraits<const lld::DefinedAtom *> {
807 class NormalizedAtom : public lld::DefinedAtom {
815 NormalizedAtom(IO &io, const lld::DefinedAtom *atom) in NormalizedAtom()
837 const lld::DefinedAtom *denormalize(IO &io) { in denormalize()
941 static void mapping(IO &io, const lld::DefinedAtom *&atom) { in mapping()
943 MappingNormalizationHeap<NormalizedAtom, const lld::DefinedAtom *> keys( in mapping()
960 DefinedAtom::scopeTranslationUnit); in mapping()
962 DefinedAtom::typeCode); in mapping()
966 DefinedAtom::interposeNo); in mapping()
967 io.mapOptional("merge", keys->_merge, DefinedAtom::mergeNo); in mapping()
969 DefinedAtom::Alignment(1)); in mapping()
971 DefinedAtom::sectionBasedOnContent); in mapping()
975 DefinedAtom::deadStripNormal); in mapping()
977 DefinedAtom::dynamicExportNormal); in mapping()
978 io.mapOptional("code-model", keys->_codeModel, DefinedAtom::codeNA); in mapping()
981 DefinedAtom::permissions( in mapping()
987 template <> struct MappingTraits<lld::DefinedAtom *> {
988 static void mapping(IO &io, lld::DefinedAtom *&atom) { in mapping()
989 const lld::DefinedAtom *atomPtr = atom; in mapping()
990 MappingTraits<const lld::DefinedAtom *>::mapping(io, atomPtr); in mapping()
991 atom = const_cast<lld::DefinedAtom *>(atomPtr); in mapping()
1221 typedef MappingTraits<const lld::DefinedAtom *>::NormalizedAtom in RefNameResolver()
1223 for (const lld::DefinedAtom *a : file->defined()) { in RefNameResolver()
1249 typedef MappingTraits<const lld::DefinedAtom *>::NormalizedAtom in denormalize()
1254 for (const lld::DefinedAtom *a : this->defined()) { in denormalize()
1255 auto *normAtom = (NormalizedAtom *)const_cast<DefinedAtom *>(a); in denormalize()
1262 inline void MappingTraits<const lld::DefinedAtom *>::NormalizedAtom::bind( in bind()