aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2020-01-30 18:16:09 -0800
committerFangrui Song <maskray@google.com>2020-02-04 09:42:36 -0800
commit8ff86fcf4c038c7156ed4f01e7ed35cae49489e2 (patch)
treef89cdcbb87a83006e0e8edd0653da194bd378fac /clang/lib/Frontend/CompilerInvocation.cpp
parent2513118afa385b9df3662050e3aa0a1e3f5e2a8a (diff)
downloadllvm-8ff86fcf4c038c7156ed4f01e7ed35cae49489e2.zip
llvm-8ff86fcf4c038c7156ed4f01e7ed35cae49489e2.tar.gz
llvm-8ff86fcf4c038c7156ed4f01e7ed35cae49489e2.tar.bz2
[X86] -fpatchable-function-entry=N,0: place patch label after ENDBR{32,64}
Similar to D73680 (AArch64 BTI). A local linkage function whose address is not taken does not need ENDBR32/ENDBR64. Placing the patch label after ENDBR32/ENDBR64 has the advantage that code does not need to differentiate whether the function has an initial ENDBR. Also, add 32-bit tests and test that .cfi_startproc is at the function entry. The line information has a general implementation and is tested by AArch64/patchable-function-entry-empty.mir Reviewed By: nickdesaulniers Differential Revision: https://reviews.llvm.org/D73760
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions