[lld] r189708 - Remove dead code.

Rui Ueyama ruiu at google.com
Fri Aug 30 16:53:07 PDT 2013


Author: ruiu
Date: Fri Aug 30 18:53:06 2013
New Revision: 189708

URL: http://llvm.org/viewvc/llvm-project?rev=189708&view=rev
Log:
Remove dead code.

Modified:
    lld/trunk/include/lld/Core/LinkingContext.h

Modified: lld/trunk/include/lld/Core/LinkingContext.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Core/LinkingContext.h?rev=189708&r1=189707&r2=189708&view=diff
==============================================================================
--- lld/trunk/include/lld/Core/LinkingContext.h (original)
+++ lld/trunk/include/lld/Core/LinkingContext.h Fri Aug 30 18:53:06 2013
@@ -177,11 +177,6 @@ public:
   /// trace different parts of LLVM and lld.
   const std::vector<const char *> &llvmOptions() const { return _llvmOptions; }
 
-  /// This method returns the sequence of input files for core linking to
-  /// process.
-  const std::vector<LinkerInput> &inputFiles() const { return _inputFiles; }
-  /// @}
-
   /// \name Methods used by Drivers to configure TargetInfo
   /// @{
   void setOutputPath(StringRef str) { _outputPath = str; }
@@ -218,12 +213,7 @@ public:
   }
   void setAllowShlibUndefines(bool allow) { _allowShlibUndefines = allow; }
   void setLogInputFiles(bool log) { _logInputFiles = log; }
-  void appendInputFile(StringRef path) {
-    _inputFiles.emplace_back(LinkerInput(path));
-  }
-  void appendInputFile(std::unique_ptr<llvm::MemoryBuffer> buffer) {
-    _inputFiles.emplace_back(LinkerInput(std::move(buffer)));
-  }
+
   void appendLLVMOption(const char *opt) { _llvmOptions.push_back(opt); }
   virtual void setInputGraph(std::unique_ptr<InputGraph> inputGraph) {
     _inputGraph = std::move(inputGraph);
@@ -344,7 +334,6 @@ protected:
   bool _logInputFiles;
   bool _allowShlibUndefines;
   std::vector<StringRef> _deadStripRoots;
-  std::vector<LinkerInput> _inputFiles;
   std::vector<const char *> _llvmOptions;
   std::unique_ptr<Reader> _yamlReader;
   StringRefVector _initialUndefinedSymbols;





More information about the llvm-commits mailing list