From 930bc70b756b7efa3d32b5f6c5c5799cdd112725 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Sun, 7 Sep 2014 01:23:16 +0000 Subject: [PATCH] Remove dead code. llvm-svn: 217324 --- lld/include/lld/Core/File.h | 8 +------- lld/lib/Core/File.cpp | 6 ------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/lld/include/lld/Core/File.h b/lld/include/lld/Core/File.h index 0699a1e60f0d..72ef08b0b40b 100644 --- a/lld/include/lld/Core/File.h +++ b/lld/include/lld/Core/File.h @@ -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); diff --git a/lld/lib/Core/File.cpp b/lld/lib/Core/File.cpp index e29867b4fb69..393a4608ecc6 100644 --- a/lld/lib/Core/File.cpp +++ b/lld/lib/Core/File.cpp @@ -12,12 +12,6 @@ namespace lld { -File::~File() {} - -StringRef File::translationUnitSource() const { - return StringRef(); -} - File::atom_collection_empty File::_noDefinedAtoms; File::atom_collection_empty File::_noUndefinedAtoms; File::atom_collection_empty File::_noSharedLibraryAtoms;