File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
llvm/lib/CodeGen/AsmPrinter Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -2878,17 +2878,16 @@ void AsmPrinter::emitConstantPool() {
2878
2878
// Now print stuff into the calculated sections.
2879
2879
const MCSection *CurSection = nullptr ;
2880
2880
unsigned Offset = 0 ;
2881
- for (unsigned i = 0 , e = CPSections.size (); i != e; ++i) {
2882
- for (unsigned j = 0 , ee = CPSections[i].CPEs .size (); j != ee; ++j) {
2883
- unsigned CPI = CPSections[i].CPEs [j];
2881
+ for (const SectionCPs &CPSection : CPSections) {
2882
+ for (unsigned CPI : CPSection.CPEs ) {
2884
2883
MCSymbol *Sym = GetCPISymbol (CPI);
2885
2884
if (!Sym->isUndefined ())
2886
2885
continue ;
2887
2886
2888
- if (CurSection != CPSections[i] .S ) {
2889
- OutStreamer->switchSection (CPSections[i] .S );
2890
- emitAlignment (Align (CPSections[i] .Alignment ));
2891
- CurSection = CPSections[i] .S ;
2887
+ if (CurSection != CPSection .S ) {
2888
+ OutStreamer->switchSection (CPSection .S );
2889
+ emitAlignment (Align (CPSection .Alignment ));
2890
+ CurSection = CPSection .S ;
2892
2891
Offset = 0 ;
2893
2892
}
2894
2893
You can’t perform that action at this time.
0 commit comments