@@ -680,7 +680,7 @@ void RISCV::relocateAlloc(InputSectionBase &sec, uint8_t *buf) const {
680680
681681void elf::initSymbolAnchors () {
682682 SmallVector<InputSection *, 0 > storage;
683- for (OutputSection *osec : outputSections) {
683+ for (OutputSection *osec : ctx. outputSections ) {
684684 if (!(osec->flags & SHF_EXECINSTR))
685685 continue ;
686686 for (InputSection *sec : getInputSections (*osec, storage)) {
@@ -719,7 +719,7 @@ void elf::initSymbolAnchors() {
719719 // efficiently. For a zero size symbol, ensure that its start anchor precedes
720720 // its end anchor. For two symbols with anchors at the same offset, their
721721 // order does not matter.
722- for (OutputSection *osec : outputSections) {
722+ for (OutputSection *osec : ctx. outputSections ) {
723723 if (!(osec->flags & SHF_EXECINSTR))
724724 continue ;
725725 for (InputSection *sec : getInputSections (*osec, storage)) {
@@ -922,7 +922,7 @@ bool RISCV::relaxOnce(int pass) const {
922922
923923 SmallVector<InputSection *, 0 > storage;
924924 bool changed = false ;
925- for (OutputSection *osec : outputSections) {
925+ for (OutputSection *osec : ctx. outputSections ) {
926926 if (!(osec->flags & SHF_EXECINSTR))
927927 continue ;
928928 for (InputSection *sec : getInputSections (*osec, storage))
@@ -935,7 +935,7 @@ void RISCV::finalizeRelax(int passes) const {
935935 llvm::TimeTraceScope timeScope (" Finalize RISC-V relaxation" );
936936 log (" relaxation passes: " + Twine (passes));
937937 SmallVector<InputSection *, 0 > storage;
938- for (OutputSection *osec : outputSections) {
938+ for (OutputSection *osec : ctx. outputSections ) {
939939 if (!(osec->flags & SHF_EXECINSTR))
940940 continue ;
941941 for (InputSection *sec : getInputSections (*osec, storage)) {
0 commit comments