[cfi] Emit __cfi_check stub in the frontend.
Previously __cfi_check was created in LTO optimization pipeline, which means LLD has no way of knowing about the existence of this symbol without rescanning the LTO output object. As a result, LLD fails to export __cfi_check, even when given --export-dynamic-symbol flag. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@299806 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/CodeGen/CGExpr.cpp 18 additions, 0 deletionslib/CodeGen/CGExpr.cpp
- lib/CodeGen/CodeGenFunction.h 3 additions, 0 deletionslib/CodeGen/CodeGenFunction.h
- lib/CodeGen/CodeGenModule.cpp 3 additions, 1 deletionlib/CodeGen/CodeGenModule.cpp
- test/CodeGen/cfi-check-fail.c 5 additions, 0 deletionstest/CodeGen/cfi-check-fail.c
Loading
Please register or sign in to comment