diff options
author | Sam Clegg <sbc@chromium.org> | 2018-02-20 22:09:59 +0000 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2018-02-20 22:09:59 +0000 |
commit | f187c4d2e578d477c3db8e6998bd91ba622c6530 (patch) | |
tree | deca74d2044dfc9fd149edcbdcf4b5b1eb75a6fa /lld/COFF/ICF.h | |
parent | fd0630665b141d83a86b40cfd3e49be1dd80e005 (diff) | |
download | llvm-f187c4d2e578d477c3db8e6998bd91ba622c6530.tar.gz |
Consistent use of header file for ICF and MarkLive
Previously wasm used a separate header to declare markLive
and ELF used to declare ICF. This change makes each backend
consistently declare these in their own headers.
Differential Revision: https://reviews.llvm.org/D43529
llvm-svn: 325631
Diffstat (limited to 'lld/COFF/ICF.h')
-rw-r--r-- | lld/COFF/ICF.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lld/COFF/ICF.h b/lld/COFF/ICF.h new file mode 100644 index 000000000000..9c54e0c9ec2d --- /dev/null +++ b/lld/COFF/ICF.h @@ -0,0 +1,26 @@ +//===- ICF.h --------------------------------------------------------------===// +// +// The LLVM Linker +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#ifndef LLD_COFF_ICF_H +#define LLD_COFF_ICF_H + +#include "lld/Common/LLVM.h" +#include "llvm/ADT/ArrayRef.h" + +namespace lld { +namespace coff { + +class Chunk; + +void doICF(ArrayRef<Chunk *> Chunks); + +} // namespace coff +} // namespace lld + +#endif |