From 346e348af5740db3660c84490d2c1bbba7c570e5 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Fri, 3 May 2013 22:06:41 +0000 Subject: I was wrong in my testing. There isn't a speedup when using unbuffered I/O. It slows it down in fact. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181060 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/profile/GCDAProfiling.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'lib/profile/GCDAProfiling.c') diff --git a/lib/profile/GCDAProfiling.c b/lib/profile/GCDAProfiling.c index 3e0fff25f..653f641f7 100644 --- a/lib/profile/GCDAProfiling.c +++ b/lib/profile/GCDAProfiling.c @@ -194,9 +194,6 @@ void llvm_gcda_start_file(const char *orig_filename, const char version[4]) { } } - /* Make the file I/O unbuffered. */ - setbuf(output_file, (char*)NULL); - /* gcda file, version, stamp LLVM. */ fwrite("adcg", 4, 1, output_file); fwrite(version, 4, 1, output_file); -- cgit v1.2.3