1 # How to generate this file:
2 # 1. First take a swift file and run xcrun swiftc -g -v test.swift
3 # reflection_metadata.swift, make sure the two swift files are in a short path
6 # 2. Now you can see what the driver does, generate the object files in the
7 # tmp directory and link them to create the input binary
9 # 3. Run obj2yaml on the input binary to create a yaml file and strip out the
10 # swift5 reflection sections from the load commands in the text segment
12 # 4. I ran delta to reduce this file.
94 - sectname: __la_symbol_ptr
116 - cmd: LC_DYLD_INFO_ONLY
148 indirectsymoff: 61344
154 - cmd: LC_LOAD_DYLINKER
159 uuid: AA0A51FA-8B29-3A7B-85AA-FA6A457B2211
160 - cmd: LC_BUILD_VERSION
166 - cmd: LC_SOURCE_VERSION
178 current_version: 14942208
179 compatibility_version: 65536
185 current_version: 85917696
186 compatibility_version: 65536
192 current_version: 85196845
193 compatibility_version: 65536
194 - cmd: LC_FUNCTION_STARTS
198 - cmd: LC_DATA_IN_CODE
646 - '_$s4main10MyProtocolMp'
647 - '_$s4main10MyProtocolTL'
648 - '_$s4main11ConformanceV5innerSivM'
649 - '_$s4main11ConformanceV5innerSivg'
650 - '_$s4main11ConformanceV5innerSivpMV'
651 - '_$s4main11ConformanceV5innerSivpfi'
652 - '_$s4main11ConformanceV5innerSivs'
653 - '_$s4main11ConformanceVAA10MyProtocolAAMc'
654 - '_$s4main11ConformanceVAA10MyProtocolAAWP'
655 - '_$s4main11ConformanceVMa'
656 - '_$s4main11ConformanceVMn'
657 - '_$s4main11ConformanceVN'
658 - '_$s4main12Conformance2V5innerSivM'
659 - '_$s4main12Conformance2V5innerSivg'
660 - '_$s4main12Conformance2V5innerSivpMV'
661 - '_$s4main12Conformance2V5innerSivpfi'
662 - '_$s4main12Conformance2V5innerSivs'
663 - '_$s4main12Conformance2VAA10MyProtocolAAMc'
664 - '_$s4main12Conformance2VAA10MyProtocolAAWP'
665 - '_$s4main12Conformance2VMa'
666 - '_$s4main12Conformance2VMn'
667 - '_$s4main12Conformance2VN'
668 - '_$s4main13MyGenericEnumOMa'
669 - '_$s4main13MyGenericEnumOMn'
670 - '_$s4main14MyGenericClassC1t1i3mgs3mgeACyxGx_5InnerQzAA0bC6StructVyxGAA0bC4EnumOyxGtcfC'
671 - '_$s4main14MyGenericClassC1t1i3mgs3mgeACyxGx_5InnerQzAA0bC6StructVyxGAA0bC4EnumOyxGtcfCTq'
672 - '_$s4main14MyGenericClassC1t1i3mgs3mgeACyxGx_5InnerQzAA0bC6StructVyxGAA0bC4EnumOyxGtcfc'
673 - '_$s4main14MyGenericClassCMa'
674 - '_$s4main14MyGenericClassCMn'
675 - '_$s4main14MyGenericClassCfD'
676 - '_$s4main14MyGenericClassCfd'
677 - '_$s4main15MyGenericStructVMa'
678 - '_$s4main15MyGenericStructVMn'
679 - '_$s4main16makeSomeClosures1tyycx_tAA10MyProtocolRzlF'
680 - '_$s4main6MyEnumOMa'
681 - '_$s4main6MyEnumOMn'
682 - '_$s4main6MyEnumON'
683 - '_$s4main7MyClassC1i2ms2meACSi_AA0B6StructVAA0B4EnumOtcfC'
684 - '_$s4main7MyClassC1i2ms2meACSi_AA0B6StructVAA0B4EnumOtcfCTq'
685 - '_$s4main7MyClassC1i2ms2meACSi_AA0B6StructVAA0B4EnumOtcfc'
686 - '_$s4main7MyClassCMa'
687 - '_$s4main7MyClassCMm'
688 - '_$s4main7MyClassCMn'
689 - '_$s4main7MyClassCN'
690 - '_$s4main7MyClassCfD'
691 - '_$s4main7MyClassCfd'
692 - '_$s4main8MyStructVMa'
693 - '_$s4main8MyStructVMn'
694 - '_$s4main8MyStructVN'
695 - '_$s5Inner4main10MyProtocolPTl'
696 - __mh_execute_header
700 - '_$sSS21_builtinStringLiteral17utf8CodeUnitCount7isASCIISSBp_BwBi1_tcfC'
703 - '_$ss27_allocateUninitializedArrayySayxG_BptBwlF'
704 - '_$ss5print_9separator10terminatoryypd_S2StF'
707 - '_OBJC_CLASS_$__TtCs12_SwiftObject'
708 - '_OBJC_METACLASS_$__TtCs12_SwiftObject'
712 - _swift_allocateGenericClassMetadata
713 - _swift_allocateGenericValueMetadata
714 - _swift_bridgeObjectRelease
715 - _swift_checkMetadataState
716 - _swift_deallocClassInstance
717 - _swift_deallocObject
718 - _swift_getAssociatedTypeWitness
719 - _swift_getGenericMetadata
720 - _swift_initClassMetadata2
724 - '_$s4main12Conformance2V5innerSivM.resume.0'
725 - '_$s4main12Conformance2V5innerACSi_tcfcfA_'
726 - '_$s4main12Conformance2V5innerACSi_tcfC'
727 - '_$s4main12Conformance2VACycfC'
728 - '_$s4main12Conformance2VAA10MyProtocolA2aDP5inner5InnerQzvgTW'
729 - '_$s4main3AppVAAyyFZ'
730 - '_$ss27_finalizeUninitializedArrayySayxGABnlF'
731 - '_$ss5print_9separator10terminatoryypd_S2StFfA0_'
732 - '_$ss5print_9separator10terminatoryypd_S2StFfA1_'
733 - '_$s4main3AppVACycfC'
734 - '_$s4main3AppV5$mainyyFZ'
736 - '_$sSa12_endMutationyyF'
737 - '_$s4main7MyClassC1iSivg'
738 - '_$s4main7MyClassC2msAA0B6StructVvg'
739 - '_$s4main7MyClassC2meAA0B4EnumOvg'
740 - '_$s4main6MyEnumOWOy'
741 - '_$s4main6MyEnumOWOe'
742 - '_$s4main6MyEnumOWOh'
743 - '_$s4main11ConformanceV5innerSivM.resume.0'
744 - '_$s4main11ConformanceV5innerACSi_tcfcfA_'
745 - '_$s4main11ConformanceV5innerACSi_tcfC'
746 - '_$s4main11ConformanceVACycfC'
747 - '_$s4main11ConformanceVAA10MyProtocolA2aDP5inner5InnerQzvgTW'
748 - '_$s4main8MyStructVACycfC'
749 - '_$s4main14MyGenericClassC1txvg'
750 - '_$s4main14MyGenericClassC1i5InnerQzvg'
751 - '_$s4main14MyGenericClassC3mgsAA0bC6StructVyxGvg'
752 - '_$s4main14MyGenericClassC3mgeAA0bC4EnumOyxGvg'
753 - '_$s4main13MyGenericEnumOyxGAA0B8ProtocolRzlWOh'
754 - '_$s4main15MyGenericStructVACyxGycfC'
755 - '_$s4main16makeSomeClosures1tyycx_tAA10MyProtocolRzlFyycfU_'
756 - '_$s4main16makeSomeClosures1tyycx_tAA10MyProtocolRzlFyycfU_TA'
757 - '_$s4main6MyEnumOwCP'
758 - '_$s4main6MyEnumOwxx'
759 - '_$s4main6MyEnumOwcp'
760 - '_$s4main6MyEnumOwca'
762 - '_$s4main6MyEnumOwta'
763 - '_$s4main6MyEnumOwet'
764 - '_$s4main6MyEnumOwst'
765 - '_$s4main6MyEnumOwug'
766 - '_$s4main6MyEnumOwup'
767 - '_$s4main6MyEnumOwui'
768 - '_$s4main14MyGenericClassCMi'
769 - '_$s4main14MyGenericClassCMr'
770 - '_$s4main15MyGenericStructVMi'
771 - '_$s4main13MyGenericEnumOMi'
772 - ___swift_initWithCopy_strong
773 - ___swift_destroy_strong
774 - ___swift_assignWithCopy_strong
776 - ___swift_assignWithTake_strong
777 - '_$s4main13MyGenericEnumOwet'
778 - '_$s4main13MyGenericEnumOwst'
779 - '_$s4main13MyGenericEnumOwug'
780 - '_$s4main13MyGenericEnumOwup'
781 - '_$s4main13MyGenericEnumOwui'
782 - ___swift_instantiateGenericMetadata
784 - ___chkstk_darwin_llvm_probe
785 - ___chkstk_darwin_probe
789 - '_$s4main7MyClassC1iSivpWvd'
790 - '_$s4main7MyClassC2msAA0B6StructVvpWvd'
791 - '_$s4main7MyClassC2meAA0B4EnumOvpWvd'
792 - '_$s4main14MyGenericClassC3mgsAA0bC6StructVyxGvpWvd'
793 - '_$s4main15MyGenericStructVMP'
794 - '_$s4main13MyGenericEnumOMP'
795 - ___swift_reflection_version
797 - _symbolic _____ 4main12Conformance2V
798 - '_symbolic $s4main10MyProtocolP'
799 - _symbolic _____ 4main3AppV
802 - _symbolic _____ 4main11ConformanceV
803 - _symbolic _____ 4main7MyClassC
804 - _symbolic _____ 4main8MyStructV
805 - _symbolic _____ 4main6MyEnumO
806 - _symbolic _____ 4main14MyGenericClassC
807 - _symbolic 5Inner_____Qz 4main10MyProtocolP
808 - _symbolic _____yxG 4main15MyGenericStructV
809 - _symbolic _____yxG 4main13MyGenericEnumO
810 - _symbolic _____ 4main15MyGenericStructV
811 - _symbolic _____ 4main13MyGenericEnumO
812 - _symbolic _____yxG 4main14MyGenericClassC
813 - '_$s4main12Conformance2VAA10MyProtocolAAMA'
814 - '_$s4main11ConformanceVAA10MyProtocolAAMA'
815 - '_$s4main12Conformance2VMF'
817 - '_$s4main10MyProtocol_pMF'
818 - '_$s4main7MyClassCMF'
819 - '_$s4main11ConformanceVMF'
820 - '_$s4main8MyStructVMF'
821 - '_$s4main6MyEnumOMF'
822 - '_$s4main14MyGenericClassCMF'
823 - '_$s4main15MyGenericStructVMF'
824 - '_$s4main13MyGenericEnumOMF'
825 - '_$s4main6MyEnumOMB'
826 - '_$s4main12Conformance2VMf'
829 - '_$s4main11ConformanceVMf'
830 - '_$s4main8MyStructVMf'
831 - '_$s4main6MyEnumOWV'
832 - '_$s4main6MyEnumOMf'
834 - '_$s4main14MyGenericClassCMP'
835 - '_$s4main13MyGenericEnumOWV'
836 - __METACLASS_DATA__TtC4main7MyClass
837 - __IVARS__TtC4main7MyClass
838 - __DATA__TtC4main7MyClass
839 - __IVARS__TtC4main14MyGenericClass
841 - '_$s4main7MyClassCMf'
842 - '_$s4main14MyGenericClassCMI'
843 - '_$s4main15MyGenericStructVMI'
844 - '_$s4main13MyGenericEnumOMI'
845 - '/tmp/main-1.swiftmodule'
846 - '/Users/shubham/Development/test76973336/final2objfiletest/'
849 - '_$s4main12Conformance2V5innerSivpfi'
850 - '_$s4main12Conformance2V5innerSivg'
851 - '_$s4main12Conformance2V5innerSivs'
852 - '_$s4main12Conformance2V5innerSivM'
853 - '_$s4main12Conformance2V5innerSivM.resume.0'
854 - '_$s4main12Conformance2V5innerACSi_tcfcfA_'
855 - '_$s4main12Conformance2V5innerACSi_tcfC'
856 - '_$s4main12Conformance2VACycfC'
857 - '_$s4main12Conformance2VAA10MyProtocolA2aDP5inner5InnerQzvgTW'
858 - '_$s4main3AppVAAyyFZ'
859 - '_$ss27_finalizeUninitializedArrayySayxGABnlF'
860 - '_$ss5print_9separator10terminatoryypd_S2StFfA0_'
861 - '_$ss5print_9separator10terminatoryypd_S2StFfA1_'
862 - '_$s4main3AppVACycfC'
863 - '_$s4main3AppV5$mainyyFZ'
865 - '_$s4main12Conformance2VMa'
867 - '_$sSa12_endMutationyyF'
868 - '_$s4main12Conformance2VAA10MyProtocolAAMc'
869 - '_$s4main12Conformance2V5innerSivpMV'
871 - '_$s4main12Conformance2VMn'
874 - _symbolic _____ 4main12Conformance2V
875 - '_symbolic $s4main10MyProtocolP'
876 - _symbolic _____ 4main3AppV
877 - '_$s4main12Conformance2VAA10MyProtocolAAMA'
878 - '_$s4main12Conformance2VMF'
880 - '_$s4main12Conformance2VMf'
881 - '_$s4main12Conformance2VN'
884 - '_$s4main12Conformance2VAA10MyProtocolAAWP'
885 - reflection_metadata.swift
886 - '/tmp/reflection_metadata-1.o'