ELF: Make error() to always set HasError.
authorRui Ueyama <ruiu@google.com>
Fri, 15 Jul 2016 01:38:54 +0000 (01:38 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 15 Jul 2016 01:38:54 +0000 (01:38 +0000)
commitaa2db889847114c6348c113e6215560ff2346cc2
treea0abefba3f63e755b41af90e4d9ee1cad515f948
parent615b85d9b40627a4cdc37781733ad859c6091f89
ELF: Make error() to always set HasError.

Previously, it checked for the EC parameter and set HasError
only when there was an error. But in most places we called
error only when error had occurred, so this behavior was confusing.

llvm-svn: 275517
lld/ELF/Driver.cpp
lld/ELF/Error.cpp
lld/ELF/Writer.cpp