gold-plugin: "Upgrade" debug info and handle its warnings.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 26 Feb 2015 18:24:37 +0000 (18:24 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 26 Feb 2015 18:24:37 +0000 (18:24 +0000)
commit8d4343eb9b943727450b4ead2325d8e46e3f045e
tree75d83fe0f560b576f87fd5c94934d0c6476a4f83
parentadaebc8b56cf00ffab1133f54bf5382bc9f12371
gold-plugin: "Upgrade" debug info and handle its warnings.

The gold plugin never calls MaterializeModule, so any old debug info
was not deleted and could cause crashes.

Now that it is being "upgraded", the plugin also has to handle warnings
and create Modules with a nice id (it shows in the warning).

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