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)
commita07d9b9a4b9a51262cb413b2e726f5bfcdc5e8e6
treea440d1d3c857d1d1529cc9bb4c897f07ce39ac8e
parent032951990475de8b19110be4950dc08addb13bec
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>

llvm-svn: 228946
llvm/tools/gold/gold-plugin.cpp