[bugpoint] Also remove comdat's from externalized GVs
authorHal Finkel <hfinkel@anl.gov>
Tue, 11 Apr 2017 00:18:42 +0000 (00:18 +0000)
committerHal Finkel <hfinkel@anl.gov>
Tue, 11 Apr 2017 00:18:42 +0000 (00:18 +0000)
commit55379ab8c719efc27c525dbc73dbb6b186f88724
tree717af4d33a4c0c05bbb8a264368736ba342d6dd3
parent76ad7d6e242011d59d7341e2c78ea5df6cff0251
[bugpoint] Also remove comdat's from externalized GVs

We were removing comdats from externalized functions (function declarations
can't be comdat), but were not doing the same for variable. Failure to do this
would cause bugpoint to fail ("Declaration may not be in a Comdat!").

llvm-svn: 299908
llvm/tools/bugpoint/ExtractFunction.cpp