[COFF] Delete unused declarations and add a missing forward declaration. NFC

llvm-svn: 356241
This commit is contained in:
Fangrui Song 2019-03-15 09:40:03 +00:00
parent f9695e166b
commit 4ac6d7e4b8
4 changed files with 2 additions and 3 deletions

View File

@ -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);

View File

@ -99,7 +99,6 @@ public:
private:
std::unique_ptr<Archive> File;
std::string Filename;
llvm::DenseSet<uint64_t> Seen;
};

View File

@ -15,6 +15,8 @@
namespace lld {
namespace coff {
class Chunk;
void markLive(ArrayRef<Chunk *> Chunks);
} // namespace coff

View File

@ -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; }