I am going to update this patch in a moment to reflect recent changes needed for the new LLVM/gold patch (D13107), and add a couple of tests.
Add clang support for -fthinlto option, which is used to set the EmitThinLTOIndex code gen option on compiles.
Dependent on LLVM/gold patch http://reviews.llvm.org/D13107.