summaryrefslogtreecommitdiffstats
path: root/lld/unittests
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-01-15 07:38:32 +0000
committerRui Ueyama <ruiu@google.com>2015-01-15 07:38:32 +0000
commit7c4ba12769cf7e2347ea9021b023428cca2f5d20 (patch)
tree91881114d293a841807933aae72b7b5ecb765d6a /lld/unittests
parent98501ea07a493412af2e50f51aa84dee76a1bcb2 (diff)
downloadbcm5719-llvm-7c4ba12769cf7e2347ea9021b023428cca2f5d20.tar.gz
bcm5719-llvm-7c4ba12769cf7e2347ea9021b023428cca2f5d20.zip
Remove FileNode::getPath().
Previously both FileNode and File keep filename. This patch removed that redundancy. llvm-svn: 226143
Diffstat (limited to 'lld/unittests')
-rw-r--r--lld/unittests/DriverTests/DriverTest.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/unittests/DriverTests/DriverTest.h b/lld/unittests/DriverTests/DriverTest.h
index 83e25c8d4d0..41c5bc525ee 100644
--- a/lld/unittests/DriverTests/DriverTest.h
+++ b/lld/unittests/DriverTests/DriverTest.h
@@ -32,10 +32,10 @@ protected:
// Convenience method for getting i'th input files name.
std::string inputFile(int index) {
- const InputElement &inputElement =
+ InputElement &inputElement =
*linkingContext()->getInputGraph().members()[index];
if (inputElement.kind() == InputElement::Kind::File)
- return *cast<FileNode>(&inputElement)->getPath(*linkingContext());
+ return cast<FileNode>(&inputElement)->getFile()->path();
llvm_unreachable("not handling other types of input files");
}
OpenPOWER on IntegriCloud