mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Remove dead code.
llvm-svn: 178977
This commit is contained in:
parent
f2a182a43c
commit
80ee9cc2a6
@ -273,23 +273,6 @@ void llvm::DisassembleInputMachO(StringRef Filename) {
|
||||
|
||||
const macho::Header &Header = MachOObj->getHeader();
|
||||
|
||||
const MachOObject::LoadCommandInfo *SymtabLCI = 0;
|
||||
// First, find the symbol table segment.
|
||||
for (unsigned i = 0; i != Header.NumLoadCommands; ++i) {
|
||||
const MachOObject::LoadCommandInfo &LCI = MachOObj->getLoadCommandInfo(i);
|
||||
if (LCI.Command.Type == macho::LCT_Symtab) {
|
||||
SymtabLCI = &LCI;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Read and register the symbol table data.
|
||||
InMemoryStruct<macho::SymtabLoadCommand> SymtabLC;
|
||||
if (SymtabLCI) {
|
||||
MachOObj->ReadSymtabLoadCommand(*SymtabLCI, SymtabLC);
|
||||
MachOObj->RegisterStringTable(*SymtabLC);
|
||||
}
|
||||
|
||||
std::vector<SectionRef> Sections;
|
||||
std::vector<SymbolRef> Symbols;
|
||||
SmallVector<uint64_t, 8> FoundFns;
|
||||
|
Loading…
Reference in New Issue
Block a user