summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/tsan/rtl/tsan_report.cc
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2013-05-17 16:56:53 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2013-05-17 16:56:53 +0000
commitffaf2eac4da21357fabef74805bd276e71f3884c (patch)
treeac64bdc9ba35809c90912faac4470b24d743a112 /compiler-rt/lib/tsan/rtl/tsan_report.cc
parent1ac08bbc7e83e1101ef0952b4926f8f0ffaeef9b (diff)
downloadbcm5719-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.cc3
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)
OpenPOWER on IntegriCloud