[llvm-branch-commits] [lld] 4701cb4 - [lld] Delete unused declarations

Fangrui Song via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Dec 6 15:31:18 PST 2020


Author: Fangrui Song
Date: 2020-12-06T15:26:37-08:00
New Revision: 4701cb41ed7f1bba01a4fd94a9bf13271112de58

URL: https://github.com/llvm/llvm-project/commit/4701cb41ed7f1bba01a4fd94a9bf13271112de58
DIFF: https://github.com/llvm/llvm-project/commit/4701cb41ed7f1bba01a4fd94a9bf13271112de58.diff

LOG: [lld] Delete unused declarations

Notes:

* runMSVCLinker: remnant of r338615
* wasm markSymbol: remnant of r374275
* wasm addDataAddressGlobal: accidentally added by r372779
* MachO Writer::createSymtabContents: accidentally added by D76839

Added: 
    

Modified: 
    lld/COFF/Driver.h
    lld/MachO/Writer.cpp
    lld/wasm/MarkLive.cpp
    lld/wasm/SyntheticSections.h

Removed: 
    


################################################################################
diff  --git a/lld/COFF/Driver.h b/lld/COFF/Driver.h
index 5de05a1ef325..dc766eeac8ed 100644
--- a/lld/COFF/Driver.h
+++ b/lld/COFF/Driver.h
@@ -96,9 +96,6 @@ class LinkerDriver {
 private:
   std::unique_ptr<llvm::TarWriter> tar; // for /linkrepro
 
-  // Opens a file. Path has to be resolved already.
-  MemoryBufferRef openFile(StringRef path);
-
   // Searches a file from search paths.
   Optional<StringRef> findFile(StringRef filename);
   Optional<StringRef> findLib(StringRef filename);
@@ -206,8 +203,6 @@ void checkFailIfMismatch(StringRef arg, InputFile *source);
 MemoryBufferRef convertResToCOFF(ArrayRef<MemoryBufferRef> mbs,
                                  ArrayRef<ObjFile *> objs);
 
-void runMSVCLinker(std::string rsp, ArrayRef<StringRef> objects);
-
 // Create enum with OPT_xxx values for each option in Options.td
 enum {
   OPT_INVALID = 0,

diff  --git a/lld/MachO/Writer.cpp b/lld/MachO/Writer.cpp
index 254e2787e893..fc4e36c9eb5e 100644
--- a/lld/MachO/Writer.cpp
+++ b/lld/MachO/Writer.cpp
@@ -46,7 +46,6 @@ class Writer {
   void createOutputSections();
   void createLoadCommands();
   void assignAddresses(OutputSegment *);
-  void createSymtabContents();
 
   void openFile();
   void writeSections();

diff  --git a/lld/wasm/MarkLive.cpp b/lld/wasm/MarkLive.cpp
index 046041bab472..62d1298838d6 100644
--- a/lld/wasm/MarkLive.cpp
+++ b/lld/wasm/MarkLive.cpp
@@ -43,7 +43,6 @@ class MarkLive {
 private:
   void enqueue(Symbol *sym);
   void enqueueInitFunctions(const ObjFile *sym);
-  void markSymbol(Symbol *sym);
   void mark();
   bool isCallCtorsLive();
 

diff  --git a/lld/wasm/SyntheticSections.h b/lld/wasm/SyntheticSections.h
index af0566e02e90..f9ec7f288dbd 100644
--- a/lld/wasm/SyntheticSections.h
+++ b/lld/wasm/SyntheticSections.h
@@ -203,7 +203,6 @@ class GlobalSection : public SyntheticSection {
   void assignIndexes() override;
   void writeBody() override;
   void addGlobal(InputGlobal *global);
-  void addDataAddressGlobal(DefinedData *global);
 
   // Add an internal GOT entry global that corresponds to the given symbol.
   // Normally GOT entries are imported and assigned by the external dynamic


        


More information about the llvm-branch-commits mailing list