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)
commit840bb0f3320357ecef92488e6aca569fa8a649a0
treef5d9b89c41a2bd02e4dfdcca7ef41ecc6b750e07
parent35684a13d4f51d4c5feb7a7d5c7b5f7742971995
Use pwrite to write the number of sections.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236153 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/ELFObjectWriter.cpp