Use pwrite to write the number of sections.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 29 Apr 2015 20:39:37 +0000 (20:39 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 29 Apr 2015 20:39:37 +0000 (20:39 +0000)
commit8c7829b82f72882154ec8a0d7716b20a5ba43ff7
treea49b08f5b33cd70c128f5740de9dacf19cf8fa4d
parent299c21474cd8778acad80eab48746325323e6f00
Use pwrite to write the number of sections.

This avoids having to compute the number upfront, which will be used in the
next patch.

llvm-svn: 236153
llvm/lib/MC/ELFObjectWriter.cpp