Simplify InputGraph API.
authorRui Ueyama <ruiu@google.com>
Sun, 14 Dec 2014 02:04:01 +0000 (02:04 +0000)
committerRui Ueyama <ruiu@google.com>
Sun, 14 Dec 2014 02:04:01 +0000 (02:04 +0000)
commite9b455184f7df45e71e6466006cc4823832054bd
treef7fab4fc231c0e7ad406a5a334d6f692a78ae233
parent83220a00ea30101c09ddaa0e35dac75cc72e46a2
Simplify InputGraph API.

These member functions returns either no_more_files error or a File object.
We could simply return a nullptr instead of a no_more_files.
This function will be removed soon as a part of InputGraph cleanup.
I had to do that step by step.

llvm-svn: 224208
lld/include/lld/Core/Error.h
lld/include/lld/Core/InputGraph.h
lld/include/lld/Core/Resolver.h
lld/lib/Core/Error.cpp
lld/lib/Core/InputGraph.cpp
lld/lib/Core/Resolver.cpp
lld/unittests/DriverTests/InputGraphTest.cpp