The gold plugin understands -O0..-O3, but these are not currently being passed to it.
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Hi Rafael,
Thanks for the review!
This introduces a meaning to -ON during the link. That normally show up by people passing CFLAGS when linking.
Yes. The rationale is that with -flto, the link is also part of the compile. I think it's more surprising that the compiler isn't called with the -O options than the reverse!
James
lib/Driver/Tools.cpp | ||
---|---|---|
1815 | Sure! | |
1817 | You're right - I don't. I'll remove this. |
Comment Actions
Hi,
As we got to the bottom of why this is actually needed, I committed this with the changes suggested by Rafael in r256146.
Cheers,
James
Can you refactor these 3 calls to push_back?