llvm.org GIT mirror llvm / 45fbe98
Fix the build broken by r189315. (this triggered Clang's -Wsometimes-uninitialized on the default path through the switch) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189319 91177308-0d34-0410-b5e6-96231b3b80d8 David Blaikie 7 years ago
1 changed file(s) with 9 addition(s) and 18 deletion(s). Raw diff Collapse all Expand all
321321
322322 static int DumpLoadCommand(const MachOObjectFile &Obj,
323323 MachOObjectFile::LoadCommandInfo &LCI) {
324 int Res;
325324 switch (LCI.C.cmd) {
326325 case MachO::LC_SEGMENT:
327 Res = DumpSegmentCommand(Obj, LCI);
328 break;
326 return DumpSegmentCommand(Obj, LCI);
329327 case MachO::LC_SEGMENT_64:
330 Res = DumpSegment64Command(Obj, LCI);
331 break;
328 return DumpSegment64Command(Obj, LCI);
332329 case MachO::LC_SYMTAB:
333 Res = DumpSymtabCommand(Obj);
334 break;
330 return DumpSymtabCommand(Obj);
335331 case MachO::LC_DYSYMTAB:
336 Res = DumpDysymtabCommand(Obj);
337 break;
332 return DumpDysymtabCommand(Obj);
338333 case MachO::LC_CODE_SIGNATURE:
339334 case MachO::LC_SEGMENT_SPLIT_INFO:
340335 case MachO::LC_FUNCTION_STARTS:
341 Res = DumpLinkeditDataCommand(Obj, LCI);
342 break;
336 return DumpLinkeditDataCommand(Obj, LCI);
343337 case MachO::LC_DATA_IN_CODE:
344 Res = DumpDataInCodeDataCommand(Obj, LCI);
345 break;
338 return DumpDataInCodeDataCommand(Obj, LCI);
346339 case MachO::LC_LINKER_OPTIONS:
347 Res = DumpLinkerOptionsCommand(Obj, LCI);
348 break;
340 return DumpLinkerOptionsCommand(Obj, LCI);
349341 default:
350342 Warning("unknown load command: " + Twine(LCI.C.cmd));
351 break;
352 }
353 return Res;
343 return 0;
344 }
354345 }
355346
356347