From 37cbf28e79e739b46c4fb2e8b07296090fbed5fc Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Tue, 21 Nov 2017 17:22:19 +0000 Subject: EntryExitInstrumenter: support __cyg_profile_func_enter_bare It works just like __cyg_profile_func_enter but takes no arguments. llvm-svn: 318783 --- llvm/lib/Transforms/Utils/EntryExitInstrumenter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib/Transforms/Utils') diff --git a/llvm/lib/Transforms/Utils/EntryExitInstrumenter.cpp b/llvm/lib/Transforms/Utils/EntryExitInstrumenter.cpp index bdcd3d4cc04..064d7d003a9 100644 --- a/llvm/lib/Transforms/Utils/EntryExitInstrumenter.cpp +++ b/llvm/lib/Transforms/Utils/EntryExitInstrumenter.cpp @@ -29,7 +29,8 @@ static void insertCall(Function &CurFn, StringRef Func, Func == "\01_mcount" || Func == "\01mcount" || Func == "__mcount" || - Func == "_mcount") { + Func == "_mcount" || + Func == "__cyg_profile_func_enter_bare") { Constant *Fn = M.getOrInsertFunction(Func, Type::getVoidTy(C)); CallInst::Create(Fn, "", InsertionPt); return; -- cgit v1.2.3