[compiler-rt] r196357 - compiler-rt: Added support for function checksums.
Yuchen Wu
yuchenericwu at hotmail.com
Tue Dec 3 22:00:05 PST 2013
Author: ywu
Date: Wed Dec 4 00:00:04 2013
New Revision: 196357
URL: http://llvm.org/viewvc/llvm-project?rev=196357&view=rev
Log:
compiler-rt: Added support for function checksums.
Modified:
compiler-rt/trunk/lib/profile/GCDAProfiling.c
Modified: compiler-rt/trunk/lib/profile/GCDAProfiling.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/GCDAProfiling.c?rev=196357&r1=196356&r2=196357&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/GCDAProfiling.c (original)
+++ compiler-rt/trunk/lib/profile/GCDAProfiling.c Wed Dec 4 00:00:04 2013
@@ -330,7 +330,7 @@ void llvm_gcda_increment_indirect_counte
}
void llvm_gcda_emit_function(uint32_t ident, const char *function_name,
- uint8_t use_extra_checksum,
+ uint32_t func_checksum, uint8_t use_extra_checksum,
uint32_t cfg_checksum) {
uint32_t len = 2;
@@ -348,7 +348,7 @@ void llvm_gcda_emit_function(uint32_t id
len += 1 + length_of_string(function_name);
write_32bit_value(len);
write_32bit_value(ident);
- write_32bit_value(0);
+ write_32bit_value(func_checksum);
if (use_extra_checksum)
write_32bit_value(cfg_checksum);
if (function_name)
More information about the llvm-commits
mailing list