[lld] Delete unused declarations
authorFangrui Song <i@maskray.me>
Sun, 6 Dec 2020 23:26:37 +0000 (15:26 -0800)
committerFangrui Song <i@maskray.me>
Sun, 6 Dec 2020 23:26:37 +0000 (15:26 -0800)
Notes:

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

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

index 5de05a1..dc766ee 100644 (file)
@@ -96,9 +96,6 @@ public:
 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,
index 254e278..fc4e36c 100644 (file)
@@ -46,7 +46,6 @@ public:
   void createOutputSections();
   void createLoadCommands();
   void assignAddresses(OutputSegment *);
-  void createSymtabContents();
 
   void openFile();
   void writeSections();
index 046041b..62d1298 100644 (file)
@@ -43,7 +43,6 @@ public:
 private:
   void enqueue(Symbol *sym);
   void enqueueInitFunctions(const ObjFile *sym);
-  void markSymbol(Symbol *sym);
   void mark();
   bool isCallCtorsLive();
 
index af0566e..f9ec7f2 100644 (file)
@@ -203,7 +203,6 @@ public:
   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