Set ordinals of all File's created in MachO passes.
authorPete Cooper <peter_cooper@apple.com>
Tue, 2 Feb 2016 01:52:40 +0000 (01:52 +0000)
committerPete Cooper <peter_cooper@apple.com>
Tue, 2 Feb 2016 01:52:40 +0000 (01:52 +0000)
commitc7d4035e70bed1d85272aff865768bf06fb37b89
tree1ce8764d7b96f8fd3a22d36ca0f26f953100f9f4
parent68a8efa374740a0829e77f57c8a2b13bead85d7f
Set ordinals of all File's created in MachO passes.

When we do debug printing of atoms, they expect their parent file
to have an ordinal.  Right now we trigger a bunch of asserts.

This doesn't actually manifest in differences in any real tests, but
even if the only thing it does is improve debuggability then its still
useful.

llvm-svn: 259450
lld/lib/ReaderWriter/MachO/CompactUnwindPass.cpp
lld/lib/ReaderWriter/MachO/GOTPass.cpp
lld/lib/ReaderWriter/MachO/ShimPass.cpp
lld/lib/ReaderWriter/MachO/StubsPass.cpp
lld/lib/ReaderWriter/MachO/TLVPass.cpp