//===- MarkLive.cpp -------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "COFFLinkerContext.h" #include "Chunks.h" #include "Symbols.h" #include "lld/Common/Timer.h" #include "llvm/ADT/STLExtras.h" #include "llvm/Support/TimeProfiler.h" #include <vector> namespace lld::coff { // Set live bit on for each reachable chunk. Unmarked (unreachable) // COMDAT chunks will be ignored by Writer, so they will be excluded // from the final output. void markLive(COFFLinkerContext &ctx) { … } }