mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-31 08:16:47 +00:00 
			
		
		
		
	Run clang-format on tools/llvm-objdump/MachODump.cpp again as some of my
previous changes got in with incorrect formatting. No functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225417 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		| @@ -3560,8 +3560,7 @@ static void PrintUuidLoadCommand(MachO::uuid_command uuid) { | ||||
|   outs() << "\n"; | ||||
| } | ||||
|  | ||||
| static void PrintRpathLoadCommand(MachO::rpath_command rpath, | ||||
|                                   const char *Ptr) { | ||||
| static void PrintRpathLoadCommand(MachO::rpath_command rpath, const char *Ptr) { | ||||
|   outs() << "          cmd LC_RPATH\n"; | ||||
|   outs() << "      cmdsize " << rpath.cmdsize; | ||||
|   if (rpath.cmdsize < sizeof(struct MachO::rpath_command)) | ||||
| @@ -3707,8 +3706,8 @@ static void PrintLinkerOptionCommand(MachO::linker_option_command lo, | ||||
|     } | ||||
|   } | ||||
|   if (lo.count != i) | ||||
|     outs() << "   count " << lo.count  << " does not match number of strings " << i | ||||
|            << "\n"; | ||||
|     outs() << "   count " << lo.count << " does not match number of strings " | ||||
|            << i << "\n"; | ||||
| } | ||||
|  | ||||
| static void PrintSubFrameworkCommand(MachO::sub_framework_command sub, | ||||
| @@ -4057,16 +4056,15 @@ static void PrintThreadCommand(MachO::thread_command t, const char *Ptr, | ||||
|                    << " (not x86_THREAD_STATE64_COUNT\n"; | ||||
|           Print_x86_thread_state64_t(ts.uts.ts64); | ||||
|         } else { | ||||
|           outs() << "\t    tsh.flavor " << ts.tsh.flavor | ||||
|                  << "  tsh.count " << ts.tsh.count << "\n"; | ||||
|           outs() << "\t    tsh.flavor " << ts.tsh.flavor << "  tsh.count " | ||||
|                  << ts.tsh.count << "\n"; | ||||
|         } | ||||
|       } else if (flavor == MachO::x86_FLOAT_STATE) { | ||||
|         outs() << "     flavor x86_FLOAT_STATE\n"; | ||||
|         if (count == MachO::x86_FLOAT_STATE_COUNT) | ||||
|           outs() << "      count x86_FLOAT_STATE_COUNT\n"; | ||||
|         else | ||||
|           outs() << "      count " << count | ||||
|                  << " (not x86_FLOAT_STATE_COUNT)\n"; | ||||
|           outs() << "      count " << count << " (not x86_FLOAT_STATE_COUNT)\n"; | ||||
|         struct MachO::x86_float_state_t fs; | ||||
|         left = end - begin; | ||||
|         if (left >= sizeof(MachO::x86_float_state_t)) { | ||||
| @@ -4088,8 +4086,8 @@ static void PrintThreadCommand(MachO::thread_command t, const char *Ptr, | ||||
|                    << " (not x86_FLOAT_STATE64_COUNT\n"; | ||||
|           Print_x86_float_state_t(fs.ufs.fs64); | ||||
|         } else { | ||||
|           outs() << "\t    fsh.flavor " << fs.fsh.flavor | ||||
|                  << "  fsh.count " << fs.fsh.count << "\n"; | ||||
|           outs() << "\t    fsh.flavor " << fs.fsh.flavor << "  fsh.count " | ||||
|                  << fs.fsh.count << "\n"; | ||||
|         } | ||||
|       } else if (flavor == MachO::x86_EXCEPTION_STATE) { | ||||
|         outs() << "     flavor x86_EXCEPTION_STATE\n"; | ||||
| @@ -4119,8 +4117,8 @@ static void PrintThreadCommand(MachO::thread_command t, const char *Ptr, | ||||
|                    << " (not x86_EXCEPTION_STATE64_COUNT\n"; | ||||
|           Print_x86_exception_state_t(es.ues.es64); | ||||
|         } else { | ||||
|           outs() << "\t    esh.flavor " << es.esh.flavor | ||||
|                  << "  esh.count " << es.esh.count << "\n"; | ||||
|           outs() << "\t    esh.flavor " << es.esh.flavor << "  esh.count " | ||||
|                  << es.esh.count << "\n"; | ||||
|         } | ||||
|       } else { | ||||
|         outs() << "     flavor " << flavor << " (unknown)\n"; | ||||
| @@ -4307,13 +4305,16 @@ static void PrintLoadCommands(const MachOObjectFile *Obj, uint32_t ncmds, | ||||
|       MachO::entry_point_command Ep = Obj->getEntryPointCommand(Command); | ||||
|       PrintEntryPointCommand(Ep); | ||||
|     } else if (Command.C.cmd == MachO::LC_ENCRYPTION_INFO) { | ||||
|       MachO::encryption_info_command Ei = Obj->getEncryptionInfoCommand(Command); | ||||
|       MachO::encryption_info_command Ei = | ||||
|           Obj->getEncryptionInfoCommand(Command); | ||||
|       PrintEncryptionInfoCommand(Ei, Buf.size()); | ||||
|     } else if (Command.C.cmd == MachO::LC_ENCRYPTION_INFO_64) { | ||||
|       MachO::encryption_info_command_64 Ei = Obj->getEncryptionInfoCommand64(Command); | ||||
|       MachO::encryption_info_command_64 Ei = | ||||
|           Obj->getEncryptionInfoCommand64(Command); | ||||
|       PrintEncryptionInfoCommand64(Ei, Buf.size()); | ||||
|     } else if (Command.C.cmd == MachO::LC_LINKER_OPTION) { | ||||
|       MachO::linker_option_command Lo = Obj->getLinkerOptionLoadCommand(Command); | ||||
|       MachO::linker_option_command Lo = | ||||
|           Obj->getLinkerOptionLoadCommand(Command); | ||||
|       PrintLinkerOptionCommand(Lo, Command.Ptr); | ||||
|     } else if (Command.C.cmd == MachO::LC_SUB_FRAMEWORK) { | ||||
|       MachO::sub_framework_command Sf = Obj->getSubFrameworkCommand(Command); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user