[lld] r356241 - [COFF] Delete unused declarations and add a missing forward declaration. NFC
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 15 02:40:03 PDT 2019
Author: maskray
Date: Fri Mar 15 02:40:03 2019
New Revision: 356241
URL: http://llvm.org/viewvc/llvm-project?rev=356241&view=rev
Log:
[COFF] Delete unused declarations and add a missing forward declaration. NFC
Modified:
lld/trunk/COFF/ICF.cpp
lld/trunk/COFF/InputFiles.h
lld/trunk/COFF/MarkLive.h
lld/trunk/COFF/Writer.h
Modified: lld/trunk/COFF/ICF.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/ICF.cpp?rev=356241&r1=356240&r2=356241&view=diff
==============================================================================
--- lld/trunk/COFF/ICF.cpp (original)
+++ lld/trunk/COFF/ICF.cpp Fri Mar 15 02:40:03 2019
@@ -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);
Modified: lld/trunk/COFF/InputFiles.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/InputFiles.h?rev=356241&r1=356240&r2=356241&view=diff
==============================================================================
--- lld/trunk/COFF/InputFiles.h (original)
+++ lld/trunk/COFF/InputFiles.h Fri Mar 15 02:40:03 2019
@@ -99,7 +99,6 @@ public:
private:
std::unique_ptr<Archive> File;
- std::string Filename;
llvm::DenseSet<uint64_t> Seen;
};
Modified: lld/trunk/COFF/MarkLive.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/MarkLive.h?rev=356241&r1=356240&r2=356241&view=diff
==============================================================================
--- lld/trunk/COFF/MarkLive.h (original)
+++ lld/trunk/COFF/MarkLive.h Fri Mar 15 02:40:03 2019
@@ -15,6 +15,8 @@
namespace lld {
namespace coff {
+class Chunk;
+
void markLive(ArrayRef<Chunk *> Chunks);
} // namespace coff
Modified: lld/trunk/COFF/Writer.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/Writer.h?rev=356241&r1=356240&r2=356241&view=diff
==============================================================================
--- lld/trunk/COFF/Writer.h (original)
+++ lld/trunk/COFF/Writer.h Fri Mar 15 02:40:03 2019
@@ -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; }
More information about the llvm-commits
mailing list