OSDN Git Service

DataFlowSanitizer: Add a debugging feature to help us track nonzero labels.
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 15 Aug 2013 18:51:12 +0000 (18:51 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 15 Aug 2013 18:51:12 +0000 (18:51 +0000)
commita77d9f726a7e3c51f04d1d74d091ae1a87d63544
tree592811f844f575bd90c72a6fbb0affde15bc8a36
parente4272979978951bece0141cdd9f6a4481b34656f
DataFlowSanitizer: Add a debugging feature to help us track nonzero labels.

Summary:
When the -dfsan-debug-nonzero-labels parameter is supplied, the code
is instrumented such that when a call parameter, return value or load
produces a nonzero label, the function __dfsan_nonzero_label is called.
The idea is that a debugger breakpoint can be set on this function
in a nominally label-free program to help identify any bugs in the
instrumentation pass causing labels to be introduced.

Reviewers: eugenis

CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1405

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188472 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
test/Instrumentation/DataFlowSanitizer/debug-nonzero-labels.ll [new file with mode: 0644]