Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lld/COFF/Chunks.cpp')
-rw-r--r--lld/COFF/Chunks.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/lld/COFF/Chunks.cpp b/lld/COFF/Chunks.cpp
index bd7b1aebbf30..b26c43aaccb4 100644
--- a/lld/COFF/Chunks.cpp
+++ b/lld/COFF/Chunks.cpp
@@ -80,23 +80,6 @@ void SectionChunk::writeTo(uint8_t *Buf) {
}
}
-void SectionChunk::mark() {
- assert(!Live);
- Live = true;
-
- // Mark all symbols listed in the relocation table for this section.
- for (const coff_relocation &Rel : Relocs) {
- SymbolBody *B = File->getSymbolBody(Rel.SymbolTableIndex)->getReplacement();
- if (auto *D = dyn_cast<DefinedRegular>(B))
- D->markLive();
- }
-
- // Mark associative sections if any.
- for (Chunk *C : AssocChildren)
- if (auto *SC = dyn_cast<SectionChunk>(C))
- SC->markLive();
-}
-
void SectionChunk::addAssociative(SectionChunk *Child) {
AssocChildren.push_back(Child);
// Associative sections are live if their parent COMDATs are live,