Work around pr23045 and make it easier to reproduce.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 27 Mar 2015 15:55:06 +0000 (15:55 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 27 Mar 2015 15:55:06 +0000 (15:55 +0000)
commitac406dfb70a4c2353230afc83dbcfa05bbcdb79e
treee48fd130ad663e7119f8c5d7aa1ae432196f838b
parent121eb4257d30348fadb3c4aaab0e9cc41c4588e1
Work around pr23045 and make it easier to reproduce.

Dropping old debug format requires the entire module to be read upfront.

This was failing only with the gold plugin, but that is just because
llvm-link was not upgrading metadata.

The new testcase using llvm-link shows the problem.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233381 91177308-0d34-0410-b5e6-96231b3b80d8
test/Linker/Inputs/drop-debug.bc [new file with mode: 0644]
test/Linker/drop-debug.ll [new file with mode: 0644]
tools/gold/gold-plugin.cpp
tools/llvm-link/llvm-link.cpp