diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-04-21 02:48:39 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-04-21 02:48:39 +0000 |
commit | ed749d8c94ea1ec0e9134287d53eed4a486d5a51 (patch) | |
tree | e374c64102e640b5514407e867137a65758cad28 /llvm/lib/Transforms | |
parent | 8e0a38f88ad814010299c21a163938b260f1856a (diff) | |
download | bcm5719-llvm-ed749d8c94ea1ec0e9134287d53eed4a486d5a51.tar.gz bcm5719-llvm-ed749d8c94ea1ec0e9134287d53eed4a486d5a51.zip |
Fix think-o: emit all 8 bytes of the EOF marker. Also reflow a line in a
comment for 80 columns.
llvm-svn: 129904
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp index a3ad5fe2e2d..59538f42edd 100644 --- a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp +++ b/llvm/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<const MDNode *, raw_fd_ostream *>::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; } |