[PATCH] D11908: Clang support for -fthinlto.

David Li via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 13 10:14:00 PDT 2015


davidxl added a subscriber: davidxl.

================
Comment at: include/clang/Driver/Options.td:685
@@ -684,1 +684,3 @@
 def fno_lto : Flag<["-"], "fno-lto">, Group<f_Group>;
+def fthinlto : Flag<["-"], "fthinlto">, Flags<[CC1Option]>, Group<f_Group>;
+def fno_thinlto : Flag<["-"], "fno-thinlto">, Group<f_Group>;
----------------
spell it like "fthin-lto" seems better than one word "fthinlto"

================
Comment at: lib/CodeGen/BackendUtil.cpp:621
@@ -620,2 +620,3 @@
     getPerModulePasses()->add(
-        createBitcodeWriterPass(*OS, CodeGenOpts.EmitLLVMUseLists));
+        createBitcodeWriterPass(*OS, CodeGenOpts.EmitLLVMUseLists,
+                                CodeGenOpts.EmitThinLTOIndex));
----------------
The change to this function is missing in the patch.


http://reviews.llvm.org/D11908





More information about the cfe-commits mailing list