summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/profile
diff options
context:
space:
mode:
authorYuchen Wu <yuchenericwu@hotmail.com>2013-12-04 06:00:04 +0000
committerYuchen Wu <yuchenericwu@hotmail.com>2013-12-04 06:00:04 +0000
commita5de343c79a14d2d0bbf77008db3dd5dc321efe6 (patch)
treed5a40f23f7ead061430f452f2b46898b003abda2 /compiler-rt/lib/profile
parent5752997c04aa5047fa54123b914de90216651f3b (diff)
downloadbcm5719-llvm-a5de343c79a14d2d0bbf77008db3dd5dc321efe6.tar.gz
bcm5719-llvm-a5de343c79a14d2d0bbf77008db3dd5dc321efe6.zip
compiler-rt: Added support for function checksums.
llvm-svn: 196357
Diffstat (limited to 'compiler-rt/lib/profile')
-rw-r--r--compiler-rt/lib/profile/GCDAProfiling.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/profile/GCDAProfiling.c b/compiler-rt/lib/profile/GCDAProfiling.c
index 5e667162e85..1efbbcdf57b 100644
--- a/compiler-rt/lib/profile/GCDAProfiling.c
+++ b/compiler-rt/lib/profile/GCDAProfiling.c
@@ -330,7 +330,7 @@ void llvm_gcda_increment_indirect_counter(uint32_t *predecessor,
}
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 ident, const char *function_name,
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)
OpenPOWER on IntegriCloud