diff options
| author | Rui Ueyama <ruiu@google.com> | 2014-04-02 21:49:27 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2014-04-02 21:49:27 +0000 |
| commit | 88c8599de947e9f0531acea5be9f78b7b16edac2 (patch) | |
| tree | f95966dc7ca2ce17f390c4b04de9709c932c155d | |
| parent | 27435b3b8ac6dbc8247bd32a709b78740daaa040 (diff) | |
| download | bcm5719-llvm-88c8599de947e9f0531acea5be9f78b7b16edac2.tar.gz bcm5719-llvm-88c8599de947e9f0531acea5be9f78b7b16edac2.zip | |
Remove unused fields/member functions from unit test.
llvm-svn: 205469
| -rw-r--r-- | lld/unittests/DriverTests/InputGraphTest.cpp | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/lld/unittests/DriverTests/InputGraphTest.cpp b/lld/unittests/DriverTests/InputGraphTest.cpp index 18e3cf15f01..893f7afebde 100644 --- a/lld/unittests/DriverTests/InputGraphTest.cpp +++ b/lld/unittests/DriverTests/InputGraphTest.cpp @@ -62,23 +62,14 @@ private: class InputGraphTest : public testing::Test { public: InputGraphTest() { - _inputGraph.reset(new InputGraph()); - _context.setInputGraph(std::move(_inputGraph)); + _ctx.setInputGraph(std::unique_ptr<InputGraph>(new InputGraph())); } - virtual LinkingContext &linkingContext() { return _context; } - - InputElement &inputElement(unsigned index) { - return linkingContext().inputGraph()[index]; - } - - virtual InputGraph &inputGraph() { return linkingContext().inputGraph(); } - - int inputFileCount() { return linkingContext().inputGraph().size(); } + InputGraph &inputGraph() { return _ctx.inputGraph(); } + int inputFileCount() { return _ctx.inputGraph().size(); } protected: - MyLinkingContext _context; - std::unique_ptr<InputGraph> _inputGraph; + MyLinkingContext _ctx; }; } // end anonymous namespace |

