mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[llvm-objdump] Switch to a range loop. NFCI.
llvm-svn: 282982
This commit is contained in:
parent
e96951abbc
commit
3f321aa5e6
@ -177,12 +177,10 @@ resolveSectionAndAddress(const COFFObjectFile *Obj, const SymbolRef &Sym,
|
||||
// the function returns the symbol used for the relocation at the offset.
|
||||
static std::error_code resolveSymbol(const std::vector<RelocationRef> &Rels,
|
||||
uint64_t Offset, SymbolRef &Sym) {
|
||||
for (std::vector<RelocationRef>::const_iterator I = Rels.begin(),
|
||||
E = Rels.end();
|
||||
I != E; ++I) {
|
||||
uint64_t Ofs = I->getOffset();
|
||||
for (auto &R : Rels) {
|
||||
uint64_t Ofs = R.getOffset();
|
||||
if (Ofs == Offset) {
|
||||
Sym = *I->getSymbol();
|
||||
Sym = *R.getSymbol();
|
||||
return std::error_code();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user