Simplify communication between Resolver and Input Graph.

Resolver is sending too much information to Input Graph than Input
Graph actually needs. In order to collect the detailed information,
which wouldn't be consumed by anyone, we have a good amount of code
in Resolver, Input Graph and Input Elements. This patch is to
simplify it. No functionality change.

Specifically, this patch replaces ResolverState enum with a boolean
value. The enum defines many bits to notify the progress about
linking to Input Graph using bit masks, however, what Input Graph
actually does is to compare a given value with 0. The details of
the bit mask is simply being ignored, so the efforts to collect
such data is wasted.

This patch also changes the name of the notification interface from
setResolverState to notifyProgress, to make it sounds more like
message passing style. It's not a setter but something to notify of
an update, so the new name should be more appropriate than before.

Differential Revision: http://llvm-reviews.chandlerc.com/D3267

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@205463 91177308-0d34-0410-b5e6-96231b3b80d8
Remove unused include.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@205466 91177308-0d34-0410-b5e6-96231b3b80d8
Remove unused fields/member functions from unit test.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@205469 91177308-0d34-0410-b5e6-96231b3b80d8