summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/tsan/rtl/tsan_rtl.cc
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2015-04-09 14:11:25 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2015-04-09 14:11:25 +0000
commite8a6fbbfd3e56abccbd9f6544aa7e00b12011bfc (patch)
tree339c3a062159f6ac5d431689f1585ec6ec681520 /compiler-rt/lib/tsan/rtl/tsan_rtl.cc
parent5c5e3c5e36aaf420aad69f0e30909b3f6bfecf10 (diff)
downloadbcm5719-llvm-e8a6fbbfd3e56abccbd9f6544aa7e00b12011bfc.tar.gz
bcm5719-llvm-e8a6fbbfd3e56abccbd9f6544aa7e00b12011bfc.zip
Use WriteToFile instead of internal_write in non-POSIX code
llvm-svn: 234487
Diffstat (limited to 'compiler-rt/lib/tsan/rtl/tsan_rtl.cc')
-rw-r--r--compiler-rt/lib/tsan/rtl/tsan_rtl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_rtl.cc b/compiler-rt/lib/tsan/rtl/tsan_rtl.cc
index 5f17c712e35..ee279a38195 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_rtl.cc
+++ b/compiler-rt/lib/tsan/rtl/tsan_rtl.cc
@@ -133,7 +133,7 @@ static void MemoryProfiler(Context *ctx, fd_t fd, int i) {
ctx->thread_registry->GetNumberOfThreads(&n_threads, &n_running_threads);
InternalScopedBuffer<char> buf(4096);
WriteMemoryProfile(buf.data(), buf.size(), n_threads, n_running_threads);
- internal_write(fd, buf.data(), internal_strlen(buf.data()));
+ WriteToFile(fd, buf.data(), internal_strlen(buf.data()));
}
static void BackgroundThread(void *arg) {
OpenPOWER on IntegriCloud