mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-08 13:36:26 +00:00
Use range loops. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236028 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7acbf56112
commit
032f234969
@ -939,20 +939,16 @@ bool ELFObjectWriter::isLocal(const MCSymbolData &Data, bool isUsedInReloc) {
|
||||
void ELFObjectWriter::computeIndexMap(MCAssembler &Asm,
|
||||
SectionIndexMapTy &SectionIndexMap) {
|
||||
unsigned Index = 1;
|
||||
for (MCAssembler::iterator it = Asm.begin(),
|
||||
ie = Asm.end(); it != ie; ++it) {
|
||||
for (const MCSectionData &SD : Asm) {
|
||||
const MCSectionELF &Section =
|
||||
static_cast<const MCSectionELF &>(it->getSection());
|
||||
static_cast<const MCSectionELF &>(SD.getSection());
|
||||
if (Section.getType() != ELF::SHT_GROUP)
|
||||
continue;
|
||||
SectionIndexMap[&Section] = Index++;
|
||||
}
|
||||
|
||||
std::vector<const MCSectionELF *> RelSections;
|
||||
|
||||
for (MCAssembler::iterator it = Asm.begin(),
|
||||
ie = Asm.end(); it != ie; ++it) {
|
||||
const MCSectionData &SD = *it;
|
||||
for (const MCSectionData &SD : Asm) {
|
||||
const MCSectionELF &Section =
|
||||
static_cast<const MCSectionELF &>(SD.getSection());
|
||||
if (Section.getType() == ELF::SHT_GROUP ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user