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)
commit444c59e270b65a1e5040231bf3b27b9577c4ee2d
tree0c0938b66c1ab17771c7fa9b0ee7c5df81835969
parentae52ac74790fe041dee7724f32b6132c7ca3c7e1
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

llvm-svn: 188472
llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
llvm/test/Instrumentation/DataFlowSanitizer/debug-nonzero-labels.ll [new file with mode: 0644]