mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-18 10:31:57 +00:00
Fix release build:
MachOObjectFile.cpp:524: error: unused variable 'NumLoadCommands' [-Wunused-variable] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139341 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c170f5f31c
commit
58856eae16
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user