[Driver] Pass -O* to the gold plugin via -plugin-opt
authorJames Molloy <james.molloy@arm.com>
Mon, 21 Dec 2015 10:44:36 +0000 (10:44 +0000)
committerJames Molloy <james.molloy@arm.com>
Mon, 21 Dec 2015 10:44:36 +0000 (10:44 +0000)
commitf97fdae4d0d0192db59531fd9948339153be27cb
tree11e46f263bb8950c1f462301aeda7b6297459773
parent0b8ed1d16259fa845fe708819069e068eef172e2
[Driver] Pass -O* to the gold plugin via -plugin-opt

The gold plugin understands -O0..-O3, but these are not currently being passed to it.

llvm-svn: 256146
clang/lib/Driver/Tools.cpp
clang/test/Driver/gold-lto.c