Simplify error handling.
authorRui Ueyama <ruiu@google.com>
Sat, 28 Oct 2017 00:05:12 +0000 (00:05 +0000)
committerRui Ueyama <ruiu@google.com>
Sat, 28 Oct 2017 00:05:12 +0000 (00:05 +0000)
commitf405b11224a1514bb921487cd8f1be19ff649aa4
tree0c2352e8facee5b6fc9e15296ce5060c92d664bd
parente8fec1955a6a4cdaa8d494cbfe13850ee06bf3fb
Simplify error handling.

I don't think we have to aim for precise bug compatibility.
We can return a nullptr if a section is consumed by the linker, and
the rest should naturally work.

llvm-svn: 316817
lld/ELF/InputFiles.cpp
lld/test/ELF/invalid/Inputs/section-index2.elf [deleted file]
lld/test/ELF/invalid/invalid-elf.test