Use cast<T> instead of dyn_cast<T>.

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

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@205404 91177308-0d34-0410-b5e6-96231b3b80d8
Remove a function that's not defined.

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

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@205454 91177308-0d34-0410-b5e6-96231b3b80d8
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
Minor cleanup.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@205470 91177308-0d34-0410-b5e6-96231b3b80d8
Concatenate strings that are unnecessarily separated.

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

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

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@205490 91177308-0d34-0410-b5e6-96231b3b80d8
Remove ordinals from Input Graph elements.

An ordinal is set to each child of Input Graph, but no one actually
uses it. The only piece of code that gets ordinaly values is
sortInputElements in InputGraph.cpp, but it does not actually do
anything -- we assign ordinals in increasing order just before
calling sort, so when sort is called it's already sorted. It's no-op.
We can simply remove it. No functionality change.

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

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@205501 91177308-0d34-0410-b5e6-96231b3b80d8
Add comment for Linker Script node.

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