]> granicus.if.org Git - clang/commit
Pass down the -flto option to the -cc1 job, and from there into the
authorTeresa Johnson <tejohnson@google.com>
Wed, 10 Jun 2015 17:49:45 +0000 (17:49 +0000)
committerTeresa Johnson <tejohnson@google.com>
Wed, 10 Jun 2015 17:49:45 +0000 (17:49 +0000)
commit68c98251b7c8d73c16c40b5da2578f8c0022c1a6
treea84e521a0ffc81ef1724caba5fa460254ad3c07d
parent0485743836796afb97b2a58508b2c66a812ffb75
Pass down the -flto option to the -cc1 job, and from there into the
CodeGenOptions and onto the PassManagerBuilder. This enables gating
the new EliminateAvailableExternally module pass on whether we are
preparing for LTO.

If we are preparing for LTO (e.g. a -flto -c compile), the new pass is not
included as we want to preserve available externally functions for possible
link time inlining.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@239481 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Options.td
include/clang/Frontend/CodeGenOptions.def
lib/CodeGen/BackendUtil.cpp
lib/Driver/Tools.cpp
lib/Frontend/CompilerInvocation.cpp
test/CodeGen/available-externally-suppress.c