Lines Matching refs:file_magic
851 file_magic identify_magic(StringRef Magic) {
853 return file_magic::unknown;
858 return file_magic::bitcode;
862 return file_magic::bitcode;
867 return file_magic::archive;
879 case 1: return file_magic::elf_relocatable;
880 case 2: return file_magic::elf_executable;
881 case 3: return file_magic::elf_shared_object;
882 case 4: return file_magic::elf_core;
893 return file_magic::macho_universal_binary;
917 case 1: return file_magic::macho_object;
918 case 2: return file_magic::macho_executable;
919 case 3: return file_magic::macho_fixed_virtual_memory_shared_lib;
920 case 4: return file_magic::macho_core;
921 case 5: return file_magic::macho_preload_executable;
922 case 6: return file_magic::macho_dynamically_linked_shared_lib;
923 case 7: return file_magic::macho_dynamic_linker;
924 case 8: return file_magic::macho_bundle;
925 case 9: return file_magic::macho_dynamic_linker;
926 case 10: return file_magic::macho_dsym_companion;
937 return file_magic::coff_object;
942 return file_magic::coff_object;
951 return file_magic::pecoff_executable;
957 return file_magic::coff_object;
963 return file_magic::unknown;
966 error_code identify_magic(const Twine &path, file_magic &result) {