1 //===- ICF.h ----------------------------------------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef LLD_MACHO_ICF_H
10 #define LLD_MACHO_ICF_H
12 #include "InputFiles.h"
13 #include "lld/Common/LLVM.h"
16 namespace lld::macho
{
20 void markAddrSigSymbols();
21 void markSymAsAddrSig(Symbol
*s
);
22 void foldIdenticalSections(bool onlyCfStrings
);
24 // Given a symbol that was folded into a thunk, return the symbol pointing to
25 // the actual body of the function. We expose this function to allow getting the
26 // main function body for a symbol that was folded via a thunk.
27 Defined
*getBodyForThunkFoldedSym(Defined
*foldedSym
);
29 } // namespace lld::macho