From 17df2c3240837b4382898ead8c3ead407a338520 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Thu, 21 Apr 2011 02:48:39 +0000 Subject: [PATCH] Fix think-o: emit all 8 bytes of the EOF marker. Also reflow a line in a comment for 80 columns. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129904 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Instrumentation/GCOVProfiling.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Transforms/Instrumentation/GCOVProfiling.cpp b/lib/Transforms/Instrumentation/GCOVProfiling.cpp index a3ad5fe2e2..59538f42ed 100644 --- a/lib/Transforms/Instrumentation/GCOVProfiling.cpp +++ b/lib/Transforms/Instrumentation/GCOVProfiling.cpp @@ -123,8 +123,8 @@ namespace { // represent this string in a GCOV file unsigned LengthOfGCOVString(StringRef s) { // A GCOV string is a length, followed by a NUL, then between 0 and 3 NULs - // padding out to the next 4-byte word. The length is measured in 4-byte words - // including padding, not bytes of actual string. + // padding out to the next 4-byte word. The length is measured in 4-byte + // words including padding, not bytes of actual string. return (s.size() + 5) / 4; } @@ -367,7 +367,7 @@ void GCOVProfiler::EmitGCNO(DebugInfoFinder &DIF) { for (DenseMap::iterator I = gcno_files.begin(), E = gcno_files.end(); I != E; ++I) { raw_fd_ostream *&Out = I->second; - Out->write("\0\0\0\0\0\0\0\0", 4); // EOF + Out->write("\0\0\0\0\0\0\0\0", 8); // EOF Out->close(); delete Out; } -- 2.11.4.GIT