[lld] r208101 - Remove a method that no one is using.
Rui Ueyama
ruiu at google.com
Tue May 6 09:22:05 PDT 2014
Author: ruiu
Date: Tue May 6 11:22:04 2014
New Revision: 208101
URL: http://llvm.org/viewvc/llvm-project?rev=208101&view=rev
Log:
Remove a method that no one is using.
Modified:
lld/trunk/include/lld/Core/InputGraph.h
lld/trunk/unittests/DriverTests/InputGraphTest.cpp
Modified: lld/trunk/include/lld/Core/InputGraph.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Core/InputGraph.h?rev=208101&r1=208100&r2=208101&view=diff
==============================================================================
--- lld/trunk/include/lld/Core/InputGraph.h (original)
+++ lld/trunk/include/lld/Core/InputGraph.h Tue May 6 11:22:04 2014
@@ -216,10 +216,6 @@ public:
return _path;
}
- // The saved input path thats used when a file is not found while
- // trying to parse a file
- StringRef getUserPath() const { return _path; }
-
virtual ~FileNode() {}
/// \brief Casting support
Modified: lld/trunk/unittests/DriverTests/InputGraphTest.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/unittests/DriverTests/InputGraphTest.cpp?rev=208101&r1=208100&r2=208101&view=diff
==============================================================================
--- lld/trunk/unittests/DriverTests/InputGraphTest.cpp (original)
+++ lld/trunk/unittests/DriverTests/InputGraphTest.cpp Tue May 6 11:22:04 2014
@@ -86,8 +86,6 @@ TEST_F(InputGraphTest, AddAFile) {
ErrorOr<InputElement *> nextElement = getInputGraph().getNextInputElement();
EXPECT_NE(InputGraphError::no_more_elements, nextElement.getError());
EXPECT_EQ(InputElement::Kind::File, (*nextElement)->kind());
- FileNode *fileNode = dyn_cast<FileNode>(*nextElement);
- EXPECT_EQ("file1", fileNode->getUserPath());
nextElement = getInputGraph().getNextInputElement();
EXPECT_EQ(InputGraphError::no_more_elements, nextElement.getError());
}
@@ -107,8 +105,6 @@ TEST_F(InputGraphTest, AddAFileWithLLDFi
EXPECT_EQ(InputElement::Kind::File, (*nextElement)->kind());
FileNode *fileNode = dyn_cast<FileNode>(*nextElement);
- EXPECT_EQ("multi_files", fileNode->getUserPath());
-
ErrorOr<File &> objfile = fileNode->getNextFile();
EXPECT_NE(InputGraphError::no_more_files, objfile.getError());
EXPECT_EQ("objfile1", (*objfile).path());
@@ -179,8 +175,6 @@ TEST_F(InputGraphTest, AddNodeWithFilesA
EXPECT_EQ(InputElement::Kind::File, (*nextElement)->kind());
FileNode *fileNode = dyn_cast<FileNode>(*nextElement);
- EXPECT_EQ("multi_files1", fileNode->getUserPath());
-
ErrorOr<File &> objfile = fileNode->getNextFile();
EXPECT_NE(InputGraphError::no_more_files, objfile.getError());
EXPECT_EQ("objfile1", (*objfile).path());
@@ -266,8 +260,6 @@ TEST_F(InputGraphTest, AddNodeWithGroupI
EXPECT_EQ(InputElement::Kind::File, (*nextElement)->kind());
FileNode *fileNode = dyn_cast<FileNode>(*nextElement);
- EXPECT_EQ("multi_files1", fileNode->getUserPath());
-
ErrorOr<File &> objfile = fileNode->getNextFile();
EXPECT_NE(InputGraphError::no_more_files, objfile.getError());
EXPECT_EQ("objfile1", (*objfile).path());
@@ -366,25 +358,21 @@ TEST_F(InputGraphTest, ExpandAndReplaceI
EXPECT_NE(InputGraphError::no_more_elements, nextElement.getError());
EXPECT_EQ(InputElement::Kind::File, (*nextElement)->kind());
FileNode *fileNode = dyn_cast<FileNode>(*nextElement);
- EXPECT_EQ("multi_files1", (*fileNode).getUserPath());
nextElement = getInputGraph().getNextInputElement();
EXPECT_NE(InputGraphError::no_more_elements, nextElement.getError());
EXPECT_EQ(InputElement::Kind::File, (*nextElement)->kind());
fileNode = dyn_cast<FileNode>(*nextElement);
- EXPECT_EQ("expand_file1", (*fileNode).getUserPath());
nextElement = getInputGraph().getNextInputElement();
EXPECT_NE(InputGraphError::no_more_elements, nextElement.getError());
EXPECT_EQ(InputElement::Kind::File, (*nextElement)->kind());
fileNode = dyn_cast<FileNode>(*nextElement);
- EXPECT_EQ("expand_file2", (*fileNode).getUserPath());
nextElement = getInputGraph().getNextInputElement();
EXPECT_NE(InputGraphError::no_more_elements, nextElement.getError());
EXPECT_EQ(InputElement::Kind::File, (*nextElement)->kind());
fileNode = dyn_cast<FileNode>(*nextElement);
- EXPECT_EQ("obj_after_expand", (*fileNode).getUserPath());
nextElement = getInputGraph().getNextInputElement();
EXPECT_EQ(InputGraphError::no_more_elements, nextElement.getError());
More information about the llvm-commits
mailing list