mattcary added a comment. It looks like there also has to be a change to llvm/lib/Transforms/Utils/EntryExitInstrumenter.cpp?
Index: lib/Transforms/Utils/EntryExitInstrumenter.cpp ===================================================== - lib/Transforms/Utils/EntryExitInstrumenter.cpp (revision 318760) +++ lib/Transforms/Utils/EntryExitInstrumenter.cpp (working copy) @@ -51,6 +51,10 @@ CallInst::Create(Fn, ArrayRef<Value *>(Args), "", InsertionPt); return; + } else if (Func == "__cyg_profile_func_enter_bare") { + Constant *Fn = M.getOrInsertFunction(Func, Type::getVoidTy(C)); + CallInst::Create(Fn, "", InsertionPt); + return; } // We only know how to call a fixed set of instrumentation functions, because https://reviews.llvm.org/D40276 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits