Add r230655 back with a fix.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 2 Mar 2015 19:08:03 +0000 (19:08 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 2 Mar 2015 19:08:03 +0000 (19:08 +0000)
commitde833240aa4814c0ab0b69309c46b66c6f1a0522
tree74f2eafe75e1316bcb1bc41de1cf34667ede1518
parent45ba21c4a33df2515e6821f7fda25a9ba385489a
Add r230655 back with a fix.

The issue is that now we have a diag handler during optimizations
and get forward every optimization remark, flooding stdout.

The same filtering should probably be done with or without a
custom handler, but for now just ignore remarks.

Original message:

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@230991 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