Bring r231132 back with a fix.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 4 Mar 2015 18:51:45 +0000 (18:51 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 4 Mar 2015 18:51:45 +0000 (18:51 +0000)
commitf3f185486c9b712418df70584956d62581897f01
tree056e49752b9060d88eebcf6002eb671ec740741f
parent3027fedce48607fabf91a046cffa212f91f5697e
Bring r231132 back with a fix.

The issue was that we were always printing the remarks. Fix that and add a test
showing that it prints nothing if -pass-remarks is not given.

Original message:
Correctly handle -pass-remarks in the gold plugin.

llvm-svn: 231273
llvm/test/tools/gold/remarks.ll [new file with mode: 0644]
llvm/tools/gold/gold-plugin.cpp