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)
commitc90e7f79caa5f09adf56236770cdfa156d79beb8
tree9f8a43bc020c66ae8504ced36284b8ddafeeed73
parentc94da20917cb4dfa750903b366c920210c5265ee
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.

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