[compiler-rt] r295469 - [PGO] remove unintended debug trace. NFC
Rong Xu via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 17 09:42:16 PST 2017
Author: xur
Date: Fri Feb 17 11:42:16 2017
New Revision: 295469
URL: http://llvm.org/viewvc/llvm-project?rev=295469&view=rev
Log:
[PGO] remove unintended debug trace. NFC
Modified:
compiler-rt/trunk/lib/profile/InstrProfilingUtil.c
Modified: compiler-rt/trunk/lib/profile/InstrProfilingUtil.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfilingUtil.c?rev=295469&r1=295468&r2=295469&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfilingUtil.c (original)
+++ compiler-rt/trunk/lib/profile/InstrProfilingUtil.c Fri Feb 17 11:42:16 2017
@@ -229,10 +229,8 @@ COMPILER_RT_VISIBILITY int lprofSuspendS
#if defined(__linux__)
int PDeachSig = 0;
/* Temporarily suspend getting SIGKILL upon exit of the parent process. */
- if (prctl(PR_GET_PDEATHSIG, &PDeachSig) == 0 && PDeachSig == SIGKILL) {
- fprintf(stderr, "set\n");
+ if (prctl(PR_GET_PDEATHSIG, &PDeachSig) == 0 && PDeachSig == SIGKILL)
prctl(PR_SET_PDEATHSIG, 0);
- }
return (PDeachSig == SIGKILL);
#else
return 0;
@@ -241,7 +239,6 @@ COMPILER_RT_VISIBILITY int lprofSuspendS
COMPILER_RT_VISIBILITY void lprofRestoreSigKill() {
#if defined(__linux__)
- fprintf(stderr, "restore \n");
prctl(PR_SET_PDEATHSIG, SIGKILL);
#endif
}
More information about the llvm-commits
mailing list