diff options
author | Rui Ueyama <ruiu@google.com> | 2014-05-06 16:22:04 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2014-05-06 16:22:04 +0000 |
commit | b340f0117c8093d0e06cf640765c3f7b592a0f78 (patch) | |
tree | 863f83573df9a2233540a438184eea7428b20970 | |
parent | b5d2dc2e892f36f037eebeae757434057af267ca (diff) | |
download | bcm5719-llvm-b340f0117c8093d0e06cf640765c3f7b592a0f78.tar.gz bcm5719-llvm-b340f0117c8093d0e06cf640765c3f7b592a0f78.zip |
Remove a method that no one is using.
llvm-svn: 208101
-rw-r--r-- | lld/include/lld/Core/InputGraph.h | 4 | ||||
-rw-r--r-- | lld/unittests/DriverTests/InputGraphTest.cpp | 12 |
2 files changed, 0 insertions, 16 deletions
diff --git a/lld/include/lld/Core/InputGraph.h b/lld/include/lld/Core/InputGraph.h index 5dc95dec5a1..d139099d065 100644 --- a/lld/include/lld/Core/InputGraph.h +++ b/lld/include/lld/Core/InputGraph.h @@ -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 diff --git a/lld/unittests/DriverTests/InputGraphTest.cpp b/lld/unittests/DriverTests/InputGraphTest.cpp index e584895a2a3..7f06414071f 100644 --- a/lld/unittests/DriverTests/InputGraphTest.cpp +++ b/lld/unittests/DriverTests/InputGraphTest.cpp @@ -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, AddAFileWithLLDFiles) { 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, AddNodeWithFilesAndGroup) { 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, AddNodeWithGroupIteration) { 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, ExpandAndReplaceInputGraphNode) { 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()); |