diff options
author | Leonard Chan <leonardchan@google.com> | 2019-06-20 19:44:51 +0000 |
---|---|---|
committer | Leonard Chan <leonardchan@google.com> | 2019-06-20 19:44:51 +0000 |
commit | 97dc622ab3f77d877ee302908dec20d9dbddfe2b (patch) | |
tree | 4752ea94709b449017d8d0fa101ac8419c97807f /clang/lib/Sema/SemaTemplate.cpp | |
parent | 642ed40e57faa34ee3ae7ba0e32f75ff582d408b (diff) | |
download | bcm5719-llvm-97dc622ab3f77d877ee302908dec20d9dbddfe2b.tar.gz bcm5719-llvm-97dc622ab3f77d877ee302908dec20d9dbddfe2b.zip |
[clang][NewPM] Do not eliminate available_externally durng `-O2 -flto` runs
This fixes CodeGen/available-externally-suppress.c when the new pass manager is
turned on by default. available_externally was not emitted during -O2 -flto
runs when it should still be retained for link time inlining purposes. This can
be fixed by checking that we aren't LTOPrelinking when adding the
EliminateAvailableExternallyPass.
Differential Revision: https://reviews.llvm.org/D63580
llvm-svn: 363971
Diffstat (limited to 'clang/lib/Sema/SemaTemplate.cpp')
0 files changed, 0 insertions, 0 deletions