mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
[C++11] Introduce SectionRef::relocations() to use range-based loops
Reviewers: rafael Reviewed By: rafael CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D3077 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203927 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -390,10 +390,8 @@ static bool getPDataSection(const COFFObjectFile *Obj,
|
||||
continue;
|
||||
|
||||
const coff_section *Pdata = Obj->getCOFFSection(SI);
|
||||
for (relocation_iterator RI = SI->relocation_begin(),
|
||||
RE = SI->relocation_end();
|
||||
RI != RE; ++RI)
|
||||
Rels.push_back(*RI);
|
||||
for (const RelocationRef &Reloc : SI->relocations())
|
||||
Rels.push_back(Reloc);
|
||||
|
||||
// Sort relocations by address.
|
||||
std::sort(Rels.begin(), Rels.end(), RelocAddressLess);
|
||||
|
Reference in New Issue
Block a user