[lld] r217324 - Remove dead code.

Rui Ueyama ruiu at google.com
Sat Sep 6 18:23:17 PDT 2014


Author: ruiu
Date: Sat Sep  6 20:23:16 2014
New Revision: 217324

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

Modified:
    lld/trunk/include/lld/Core/File.h
    lld/trunk/lib/Core/File.cpp

Modified: lld/trunk/include/lld/Core/File.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Core/File.h?rev=217324&r1=217323&r2=217324&view=diff
==============================================================================
--- lld/trunk/include/lld/Core/File.h (original)
+++ lld/trunk/include/lld/Core/File.h Sat Sep  6 20:23:16 2014
@@ -39,7 +39,7 @@ class LinkingContext;
 /// are destroyed when the File object is destroyed.
 class File {
 public:
-  virtual ~File();
+  virtual ~File() {}
 
   /// \brief Kinds of files that are supported.
   enum Kind {
@@ -59,12 +59,6 @@ public:
     return _path;
   }
 
-  /// \brief Returns the path of the source file used to create the object
-  /// file which this (File) object represents.  This information is usually
-  /// parsed out of the DWARF debug information. If the source file cannot
-  /// be ascertained, this method returns the empty string.
-  virtual StringRef translationUnitSource() const;
-
   /// Returns the command line order of the file.
   uint64_t ordinal() const {
     assert(_ordinal != UINT64_MAX);

Modified: lld/trunk/lib/Core/File.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Core/File.cpp?rev=217324&r1=217323&r2=217324&view=diff
==============================================================================
--- lld/trunk/lib/Core/File.cpp (original)
+++ lld/trunk/lib/Core/File.cpp Sat Sep  6 20:23:16 2014
@@ -12,12 +12,6 @@
 
 namespace lld {
 
-File::~File() {}
-
-StringRef File::translationUnitSource() const {
-  return StringRef();
-}
-
 File::atom_collection_empty<DefinedAtom>       File::_noDefinedAtoms;
 File::atom_collection_empty<UndefinedAtom>     File::_noUndefinedAtoms;
 File::atom_collection_empty<SharedLibraryAtom> File::_noSharedLibraryAtoms;





More information about the llvm-commits mailing list