diff options
author | Jian Cai <caij2003@gmail.com> | 2019-08-16 20:21:08 +0000 |
---|---|---|
committer | Jian Cai <caij2003@gmail.com> | 2019-08-16 20:21:08 +0000 |
commit | f4cf3b959333f62b7a7b2d7771f7010c9d8da388 (patch) | |
tree | 62fe8d81d43e64f878e44a9688ff0fe1acfba603 /llvm/lib/Transforms/Utils/EntryExitInstrumenter.cpp | |
parent | 217ff1e445605077622fac73c56887c85fa44a6f (diff) | |
download | bcm5719-llvm-f4cf3b959333f62b7a7b2d7771f7010c9d8da388.tar.gz bcm5719-llvm-f4cf3b959333f62b7a7b2d7771f7010c9d8da388.zip |
[ARM] push LR before __gnu_mcount_nc
Push LR register before calling __gnu_mcount_nc as it expects the value of LR register to be the top value of
the stack on ARM32.
Differential Revision: https://reviews.llvm.org/D65019
llvm-svn: 369147
Diffstat (limited to 'llvm/lib/Transforms/Utils/EntryExitInstrumenter.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/EntryExitInstrumenter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/EntryExitInstrumenter.cpp b/llvm/lib/Transforms/Utils/EntryExitInstrumenter.cpp index 4aa40eeadda..57e2ff0251a 100644 --- a/llvm/lib/Transforms/Utils/EntryExitInstrumenter.cpp +++ b/llvm/lib/Transforms/Utils/EntryExitInstrumenter.cpp @@ -24,7 +24,7 @@ static void insertCall(Function &CurFn, StringRef Func, if (Func == "mcount" || Func == ".mcount" || - Func == "\01__gnu_mcount_nc" || + Func == "llvm.arm.gnu.eabi.mcount" || Func == "\01_mcount" || Func == "\01mcount" || Func == "__mcount" || |