Set gold plugin options in a sane order.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 19 Jun 2014 22:54:47 +0000 (22:54 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 19 Jun 2014 22:54:47 +0000 (22:54 +0000)
commitf38fdf1b612bf9e0a19d8d08d4283baa05334bcb
tree8c03896363ff0f9ae017005e51279904afbfc1ab
parentf7b992bdcd05fd6844f96e0431505d0b9c9956f9
Set gold plugin options in a sane order.

This fixes the  processing of --plugin-opt=-jump-table-type=arity.

Nice properties:
 * We call InitTargetOptionsFromCodeGenFlags once.
 * We call parseCodeGenDebugOptions once.
 * It works :-)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211322 91177308-0d34-0410-b5e6-96231b3b80d8
tools/gold/gold-plugin.cpp