[PATCH] Add -disable-opt option to LTO

Cristiano Giuffrida giuffrida at cs.vu.nl
Tue Feb 26 18:13:30 PST 2013


Hi,
the attached patch adds the -disable-opt option to LTO. The effect is
self-explanatory. I think this should be considered for merging
(hopefully for the upcoming 3.3 release) for the following reasons:

- Consistency with opt (which supports the same option with the same
meaning and description).
- Debugging gold plugin-based linking without optimizations getting in the way.
- Debugging programs linked with the gold plugin while preserving the
original debug info.
- Fine-grained control over LTO passes using the gold plugin in
combination with opt (or clang/dragonegg).

Thanks,

Cristiano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: disable-opt.patch
Type: application/octet-stream
Size: 1160 bytes
Desc: disable-opt.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130227/b151743f/attachment.obj>


More information about the llvm-commits mailing list