diff options
author | Nick Desaulniers <ndesaulniers@google.com> | 2022-07-14 11:25:21 -0700 |
---|---|---|
committer | Nick Desaulniers <ndesaulniers@google.com> | 2022-07-14 11:25:24 -0700 |
commit | 140bfdca60ae8b1b2ad115846379e3c9ca914bfb (patch) | |
tree | c73b9720f155e1504b3a55b39b35f6244cb9a15e /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 2c648f7d582620a9b19d5152dca5d6caa4d84354 (diff) | |
download | llvm-140bfdca60ae8b1b2ad115846379e3c9ca914bfb.zip llvm-140bfdca60ae8b1b2ad115846379e3c9ca914bfb.tar.gz llvm-140bfdca60ae8b1b2ad115846379e3c9ca914bfb.tar.bz2 |
[clang][CodeGen] add fn_ret_thunk_extern to synthetic fns
Follow up fix to
commit 2240d72f15f3 ("[X86] initial -mfunction-return=thunk-extern
support")
https://reviews.llvm.org/D129572
@nathanchance reported that -mfunction-return=thunk-extern was failing
to annotate the asan and tsan contructors.
https://lore.kernel.org/llvm/Ys7pLq+tQk5xEa%2FB@dev-arch.thelio-3990X/
I then noticed the same occurring for gcov synthetic functions.
Similar to
commit 2786e67 ("[IR][sanitizer] Add module flag "frame-pointer" and set
it for cc1 -mframe-pointer={non-leaf,all}")
define a new module level MetaData, "fn_ret_thunk_extern", then when set
adds the fn_ret_thunk_extern IR Fn Attr to synthetically created
Functions.
Fixes https://github.com/llvm/llvm-project/issues/56514
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D129709
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions