-
Notifications
You must be signed in to change notification settings - Fork 17k
Expand file tree
/
Copy pathICF.h
More file actions
31 lines (24 loc) · 967 Bytes
/
ICF.h
File metadata and controls
31 lines (24 loc) · 967 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//===- ICF.h ----------------------------------------------------*- C++ -*-===//
//
// 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
//
//===----------------------------------------------------------------------===//
#ifndef LLD_MACHO_ICF_H
#define LLD_MACHO_ICF_H
#include "InputFiles.h"
#include "lld/Common/LLVM.h"
#include <vector>
namespace lld::macho {
class Symbol;
class Defined;
void markAddrSigSymbols();
void markSymAsAddrSig(Symbol *s);
void foldIdenticalSections(bool onlyCfStrings);
// Given a symbol that was folded into a thunk, return the symbol pointing to
// the actual body of the function. We expose this function to allow getting the
// main function body for a symbol that was folded via a thunk.
Defined *getBodyForThunkFoldedSym(Defined *foldedSym);
} // namespace lld::macho
#endif