diff --git a/lld/COFF/ICF.cpp b/lld/COFF/ICF.cpp index 7684b2c80a32..f7dd0a1295a3 100644 --- a/lld/COFF/ICF.cpp +++ b/lld/COFF/ICF.cpp @@ -51,7 +51,6 @@ private: bool equalsConstant(const SectionChunk *A, const SectionChunk *B); bool equalsVariable(const SectionChunk *A, const SectionChunk *B); - uint32_t getHash(SectionChunk *C); bool isEligible(SectionChunk *C); size_t findBoundary(size_t Begin, size_t End); diff --git a/lld/COFF/InputFiles.h b/lld/COFF/InputFiles.h index 78a95014d445..08b730683a37 100644 --- a/lld/COFF/InputFiles.h +++ b/lld/COFF/InputFiles.h @@ -99,7 +99,6 @@ public: private: std::unique_ptr File; - std::string Filename; llvm::DenseSet Seen; }; diff --git a/lld/COFF/MarkLive.h b/lld/COFF/MarkLive.h index 3d7ef932e45d..9c584dc19e2b 100644 --- a/lld/COFF/MarkLive.h +++ b/lld/COFF/MarkLive.h @@ -15,6 +15,8 @@ namespace lld { namespace coff { +class Chunk; + void markLive(ArrayRef Chunks); } // namespace coff diff --git a/lld/COFF/Writer.h b/lld/COFF/Writer.h index c4309175302f..36ad259a09f0 100644 --- a/lld/COFF/Writer.h +++ b/lld/COFF/Writer.h @@ -35,7 +35,6 @@ public: void addChunk(Chunk *C); void insertChunkAtStart(Chunk *C); void merge(OutputSection *Other); - void addPermissions(uint32_t C); void setPermissions(uint32_t C); uint64_t getRVA() { return Header.VirtualAddress; } uint64_t getFileOff() { return Header.PointerToRawData; }