[Clang] Replace cc1 options '-mdisable-fp-elim' and '-momit-leaf-frame-pointer'
authorYuanfang Chen <yuanfang.chen@sony.com>
Sat, 20 Jul 2019 22:50:50 +0000 (22:50 +0000)
committerYuanfang Chen <yuanfang.chen@sony.com>
Sat, 20 Jul 2019 22:50:50 +0000 (22:50 +0000)
commit8e40137e31487e55e3441967d1f9a915484cb756
tree6de111eeacacbb599d68336d30120bed2fd8daa2
parent21f5c9351fe1bd35d959ee139309a5e04902e64e
[Clang] Replace cc1 options '-mdisable-fp-elim' and '-momit-leaf-frame-pointer'
with '-mframe-pointer'

After D56351 and D64294, frame pointer handling is migrated to tri-state
(all, non-leaf, none) in clang driver and on the function attribute.
This patch makes the frame pointer handling cc1 option tri-state.

Reviewers: chandlerc, rnk, t.p.northover, MaskRay

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D56353

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@366645 91177308-0d34-0410-b5e6-96231b3b80d8
19 files changed:
include/clang/Basic/CodeGenOptions.def
include/clang/Basic/CodeGenOptions.h
include/clang/Driver/CC1Options.td
include/clang/Driver/Options.td
lib/CodeGen/CGCall.cpp
lib/Driver/ToolChains/Clang.cpp
lib/Frontend/CompilerInvocation.cpp
test/CodeGen/msp430-fp-elim.c
test/CodeGen/x86_64-profiling-keep-fp.c
test/CodeGen/xcore-abi.c
test/CodeGen/xcore-abi.cpp
test/CodeGenCXX/global-init.cpp
test/CodeGenObjCXX/msabi-stret.mm
test/Driver/cl-options.c
test/Driver/clang-translation.c
test/Driver/frame-pointer-elim.c
test/Driver/frame-pointer.c
test/Driver/woa-fp.c
test/Driver/xcore-opts.c