Make error handling consistent.
authorRui Ueyama <ruiu@google.com>
Fri, 1 Apr 2016 17:24:19 +0000 (17:24 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 1 Apr 2016 17:24:19 +0000 (17:24 +0000)
commitf7f52ef65df2efbb6619be15afd0864c84466346
tree7dcd6284d668e1e41fb344aab7caf96dcb205f45
parent8ecc2ec0e3623dba3f540a73f876ed749f510178
Make error handling consistent.

Some functions in Writer reports error using HasError, and some reports
their return values. This patch makes them to consistently use HasError.

llvm-svn: 265156
lld/ELF/Writer.cpp