Revert "[libc] Use best-fit binary trie to make malloc logarithmic" (#117065)
[llvm-project.git] / lld / MachO / ICF.h
blobe382fd6c60956cf3c519b081a1fe53df832cb757
1 //===- ICF.h ----------------------------------------------------*- C++ -*-===//
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 //===----------------------------------------------------------------------===//
9 #ifndef LLD_MACHO_ICF_H
10 #define LLD_MACHO_ICF_H
12 #include "InputFiles.h"
13 #include "lld/Common/LLVM.h"
14 #include <vector>
16 namespace lld::macho {
17 class Symbol;
18 class Defined;
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
31 #endif