[ELF] Set ordinals properly to all atoms.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@192939 91177308-0d34-0410-b5e6-96231b3b80d8
Improve debug message of the layout pass.

Instead of showing multiple lines of debug messages, show only one message
by CompareAtoms::operator(). Here is an example.

Before:
  Sorting _main .text
  Sorting by sectionPos(2,2)
  Sorting by override
  Sorting _main .text
  Sorting by sectionPos(2,2)
  Sorting by override

After:
  Layout: '_main' > '.text' (override (1, 0))
  Layout: '_main' > '.text' (override (1, 0))

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

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