mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 00:11:00 +00:00
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
This commit is contained in:
parent
9c3dd1b0d1
commit
45fbe98c21
@ -322,36 +322,27 @@ DumpLinkerOptionsCommand(const MachOObjectFile &Obj,
|
||||
|
||||
static int DumpLoadCommand(const MachOObjectFile &Obj,
|
||||
MachOObjectFile::LoadCommandInfo &LCI) {
|
||||
int Res;
|
||||
switch (LCI.C.cmd) {
|
||||
case MachO::LC_SEGMENT:
|
||||
Res = DumpSegmentCommand(Obj, LCI);
|
||||
break;
|
||||
return DumpSegmentCommand(Obj, LCI);
|
||||
case MachO::LC_SEGMENT_64:
|
||||
Res = DumpSegment64Command(Obj, LCI);
|
||||
break;
|
||||
return DumpSegment64Command(Obj, LCI);
|
||||
case MachO::LC_SYMTAB:
|
||||
Res = DumpSymtabCommand(Obj);
|
||||
break;
|
||||
return DumpSymtabCommand(Obj);
|
||||
case MachO::LC_DYSYMTAB:
|
||||
Res = DumpDysymtabCommand(Obj);
|
||||
break;
|
||||
return DumpDysymtabCommand(Obj);
|
||||
case MachO::LC_CODE_SIGNATURE:
|
||||
case MachO::LC_SEGMENT_SPLIT_INFO:
|
||||
case MachO::LC_FUNCTION_STARTS:
|
||||
Res = DumpLinkeditDataCommand(Obj, LCI);
|
||||
break;
|
||||
return DumpLinkeditDataCommand(Obj, LCI);
|
||||
case MachO::LC_DATA_IN_CODE:
|
||||
Res = DumpDataInCodeDataCommand(Obj, LCI);
|
||||
break;
|
||||
return DumpDataInCodeDataCommand(Obj, LCI);
|
||||
case MachO::LC_LINKER_OPTIONS:
|
||||
Res = DumpLinkerOptionsCommand(Obj, LCI);
|
||||
break;
|
||||
return DumpLinkerOptionsCommand(Obj, LCI);
|
||||
default:
|
||||
Warning("unknown load command: " + Twine(LCI.C.cmd));
|
||||
break;
|
||||
return 0;
|
||||
}
|
||||
return Res;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user