2018-02-21 06:09:59 +08:00
|
|
|
//===- ICF.h --------------------------------------------------------------===//
|
|
|
|
//
|
2019-01-19 16:50:56 +08:00
|
|
|
// 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
|
2018-02-21 06:09:59 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLD_COFF_ICF_H
|
|
|
|
#define LLD_COFF_ICF_H
|
|
|
|
|
2021-02-27 08:38:24 +08:00
|
|
|
#include "Config.h"
|
2018-02-21 06:09:59 +08:00
|
|
|
#include "lld/Common/LLVM.h"
|
|
|
|
#include "llvm/ADT/ArrayRef.h"
|
|
|
|
|
|
|
|
namespace lld {
|
|
|
|
namespace coff {
|
|
|
|
|
|
|
|
class Chunk;
|
|
|
|
|
2021-02-27 08:38:24 +08:00
|
|
|
void doICF(ArrayRef<Chunk *> chunks, ICFLevel);
|
2018-02-21 06:09:59 +08:00
|
|
|
|
|
|
|
} // namespace coff
|
|
|
|
} // namespace lld
|
|
|
|
|
|
|
|
#endif
|