[clang][driver] Enable '-flto' on AVR
commit0d37efdbc599e61ce2a0418723a66d6b45aea8d7
authorBen Shi <powerman1st@163.com>
Thu, 9 Mar 2023 04:04:54 +0000 (9 12:04 +0800)
committerBen Shi <powerman1st@163.com>
Wed, 22 Mar 2023 04:57:58 +0000 (22 12:57 +0800)
tree2b9aec20f70936da2ccce518a2827d65500f01f2
parentfa0d4e1f12a3f69dd0afb07c0928c867ab921537
[clang][driver] Enable '-flto' on AVR

Reviewed By: MaskRay

Closes https://github.com/llvm/llvm-project/issues/55940

Differential Revision: https://reviews.llvm.org/D145646
clang/lib/Driver/ToolChains/AVR.cpp
clang/lib/Driver/ToolChains/AVR.h
clang/test/Driver/avr-ld.c