diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2013-05-17 16:56:53 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2013-05-17 16:56:53 +0000 |
commit | ffaf2eac4da21357fabef74805bd276e71f3884c (patch) | |
tree | ac64bdc9ba35809c90912faac4470b24d743a112 /compiler-rt/lib/tsan/rtl/tsan_report.cc | |
parent | 1ac08bbc7e83e1101ef0952b4926f8f0ffaeef9b (diff) | |
download | bcm5719-llvm-ffaf2eac4da21357fabef74805bd276e71f3884c.tar.gz bcm5719-llvm-ffaf2eac4da21357fabef74805bd276e71f3884c.zip |
[nolibc] Move all platforms to internal_getpid.
Before, we had an unused internal_getpid function for Linux, and a
platform-independent GetPid function. To make the naming conventions
consistent for syscall-like functions, the GetPid syscall wrapper
in sanitizer_posix.cc is moved to sanitizer_mac.cc, and GetPid is
renamed to internal_getpid, bringing the Linux variant into use.
llvm-svn: 182132
Diffstat (limited to 'compiler-rt/lib/tsan/rtl/tsan_report.cc')
-rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_report.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_report.cc b/compiler-rt/lib/tsan/rtl/tsan_report.cc index bfa26602189..c95c5c86be6 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_report.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_report.cc @@ -179,7 +179,8 @@ ReportStack *SkipTsanInternalFrames(ReportStack *ent) { void PrintReport(const ReportDesc *rep) { Printf("==================\n"); const char *rep_typ_str = ReportTypeString(rep->typ); - Printf("WARNING: ThreadSanitizer: %s (pid=%d)\n", rep_typ_str, GetPid()); + Printf("WARNING: ThreadSanitizer: %s (pid=%d)\n", rep_typ_str, + (int)internal_getpid()); for (uptr i = 0; i < rep->stacks.Size(); i++) { if (i) |