gold-plugin: delete the output file for OT_DISABLE
authorMichael Kuperstein <michael.m.kuperstein@intel.com>
Thu, 12 Feb 2015 18:21:50 +0000 (18:21 +0000)
committerMichael Kuperstein <michael.m.kuperstein@intel.com>
Thu, 12 Feb 2015 18:21:50 +0000 (18:21 +0000)
commit17a113d26bb1838e0523d9eb97ded7529ce69a4d
tree3470a0e8266de955fe2d5707f72ec159ffd93570
parentc3c5d7c2d6e3add269d590b2632dec48634d39cf
gold-plugin: delete the output file for OT_DISABLE

bfd creates the output file early, so calling exit(0) is not enough, the file needs to be explicitly deleted.

Patch by: H.J. Lu <hjl.tools@gmail.com>

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