[llvm] r178977 - Remove dead code.
Rafael Espindola
rafael.espindola at gmail.com
Sun Apr 7 07:30:21 PDT 2013
Author: rafael
Date: Sun Apr 7 09:30:21 2013
New Revision: 178977
URL: http://llvm.org/viewvc/llvm-project?rev=178977&view=rev
Log:
Remove dead code.
Modified:
llvm/trunk/tools/llvm-objdump/MachODump.cpp
Modified: llvm/trunk/tools/llvm-objdump/MachODump.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-objdump/MachODump.cpp?rev=178977&r1=178976&r2=178977&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-objdump/MachODump.cpp (original)
+++ llvm/trunk/tools/llvm-objdump/MachODump.cpp Sun Apr 7 09:30:21 2013
@@ -273,23 +273,6 @@ void llvm::DisassembleInputMachO(StringR
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;
More information about the llvm-commits
mailing list