diff options
| author | Rui Ueyama <ruiu@google.com> | 2015-01-15 08:31:46 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2015-01-15 08:31:46 +0000 |
| commit | 61635440a935fd8192fcc3c76bf6bac7b68166b3 (patch) | |
| tree | 2ce0798187d39d6a8baef0726f9fd8f381ce9067 /lld/unittests | |
| parent | 861c2d6c3a5f78d9b56999868b4ca2a0dc31c81c (diff) | |
| download | bcm5719-llvm-61635440a935fd8192fcc3c76bf6bac7b68166b3.tar.gz bcm5719-llvm-61635440a935fd8192fcc3c76bf6bac7b68166b3.zip | |
Rename InputElement Node.
InputElement was named that because it's an element of an InputGraph.
It's losing the origin because the InputGraph is now being removed.
InputElement's subclass is FileNode, that naming inconsistency needed
to be fixed.
llvm-svn: 226147
Diffstat (limited to 'lld/unittests')
| -rw-r--r-- | lld/unittests/DriverTests/DriverTest.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lld/unittests/DriverTests/DriverTest.h b/lld/unittests/DriverTests/DriverTest.h index 41c5bc525ee..c854e382aed 100644 --- a/lld/unittests/DriverTests/DriverTest.h +++ b/lld/unittests/DriverTests/DriverTest.h @@ -32,10 +32,9 @@ protected: // Convenience method for getting i'th input files name. std::string inputFile(int index) { - InputElement &inputElement = - *linkingContext()->getInputGraph().members()[index]; - if (inputElement.kind() == InputElement::Kind::File) - return cast<FileNode>(&inputElement)->getFile()->path(); + Node &node = *linkingContext()->getInputGraph().members()[index]; + if (node.kind() == Node::Kind::File) + return cast<FileNode>(&node)->getFile()->path(); llvm_unreachable("not handling other types of input files"); } |

