[llvm-commits] [ASan] Replace AsanProcMaps::GetObjectNameAndOffset with a simpler AsanProcMaps::DescribeAddress (issue 5643047)
samsonov at google.com
samsonov at google.com
Tue Feb 7 23:11:02 PST 2012
http://codereview.appspot.com/5643047/diff/1/lib/asan/asan_procmaps.h
File lib/asan/asan_procmaps.h (right):
http://codereview.appspot.com/5643047/diff/1/lib/asan/asan_procmaps.h#newcode30
lib/asan/asan_procmaps.h:30: // and puts it into the given buffer with a
leading space
On 2012/02/07 17:41:15, timurrrr_at_google_com wrote:
> I know this may sound a bit confusing, but look at how easy it is to
use this
> function now (asan_stack.cc, which is the only place this is used)
I think it's weird to write leading space here.
"puts"->"writes"?
http://codereview.appspot.com/5643047/diff/1/lib/asan/asan_procmaps.h#newcode32
lib/asan/asan_procmaps.h:32: void DescribeAddress(uintptr_t addr, char
out_buffer[], size_t buffer_size);
Why not GetAddressDescription()? We've got two other different
DescribeAddress functions already :)
http://codereview.appspot.com/5643047/diff/1/lib/asan/asan_stack.cc
File lib/asan/asan_stack.cc (right):
http://codereview.appspot.com/5643047/diff/1/lib/asan/asan_stack.cc#newcode47
lib/asan/asan_stack.cc:47: Printf(" #%ld 0x%lx%s\n", i, pc, descr);
Why not write space here?
http://codereview.appspot.com/5643047/
More information about the llvm-commits
mailing list