Only seek once before writing the member offsets.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 11 Dec 2014 16:34:00 +0000 (16:34 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 11 Dec 2014 16:34:00 +0000 (16:34 +0000)
commitd432c4a229b292b8422f4d90488b6875282e0527
treec3fc348a28914cd05fea4aa6a1b5dfce677bda4e
parent1fa01645adb903e01adcdde4d06f75218c923dce
Only seek once before writing the member offsets.

This cuts down the number on system calls done by a static llvm-ar producing
lib/libclangSema.a from 9164 to 442.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224025 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-ar/llvm-ar.cpp