1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Fix release build:

MachOObjectFile.cpp:524: error: unused variable 'NumLoadCommands' [-Wunused-variable]

llvm-svn: 139341
This commit is contained in:
Nick Lewycky 2011-09-09 00:16:50 +00:00
parent 19d51af328
commit ec5437bfc4

View File

@ -521,12 +521,11 @@ error_code MachOObjectFile::getRelocationSymbol(DataRefImpl Rel,
DataRefImpl Sym;
Sym.d.a = Sym.d.b = 0;
moveToNextSymbol(Sym);
uint32_t NumLoadCommands = MachOObj->getHeader().NumLoadCommands;
if (isExtern) {
for (unsigned i = 0; i < SymbolIdx; i++) {
Sym.d.b++;
moveToNextSymbol(Sym);
assert(Sym.d.a < NumLoadCommands &&
assert(Sym.d.a < MachOObj->getHeader().NumLoadCommands &&
"Relocation symbol index out of range!");
}
}
@ -625,4 +624,3 @@ unsigned MachOObjectFile::getArch() const {
}
} // end namespace llvm