Writer.cpp (61cfbce3347e4372143bcabf7b197577b9f3958a) Writer.cpp (f3fd488f1e19a3d09c4bdcece893901de4f49cdd)
1//===- Writer.cpp ---------------------------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8

--- 661 unchanged lines hidden (view full) ---

670 auto *referentIsec = r.referent.get<InputSection *>();
671 r.referent = referentIsec->canonical();
672 if (!r.pcrel)
673 in.rebase->addEntry(isec, r.offset);
674 }
675 }
676 }
677
1//===- Writer.cpp ---------------------------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8

--- 661 unchanged lines hidden (view full) ---

670 auto *referentIsec = r.referent.get<InputSection *>();
671 r.referent = referentIsec->canonical();
672 if (!r.pcrel)
673 in.rebase->addEntry(isec, r.offset);
674 }
675 }
676 }
677
678 in.unwindInfo->prepareRelocations();
678 in.unwindInfo->prepare();
679}
680
681void Writer::scanSymbols() {
682 TimeTraceScope timeScope("Scan symbols");
683 for (Symbol *sym : symtab->getSymbols()) {
684 if (auto *defined = dyn_cast<Defined>(sym)) {
685 if (!defined->isLive())
686 continue;

--- 559 unchanged lines hidden ---
679}
680
681void Writer::scanSymbols() {
682 TimeTraceScope timeScope("Scan symbols");
683 for (Symbol *sym : symtab->getSymbols()) {
684 if (auto *defined = dyn_cast<Defined>(sym)) {
685 if (!defined->isLive())
686 continue;

--- 559 unchanged lines hidden ---