1 //===-- FunctionBlackList.cpp - blacklist of functions ----------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //===----------------------------------------------------------------------===//
9 // This is a utility class for instrumentation passes (like AddressSanitizer
10 // or ThreadSanitizer) to avoid instrumenting some functions based on
11 // user-supplied blacklist.
13 //===----------------------------------------------------------------------===//
22 // Blacklisted functions are not instrumented.
23 // The blacklist file contains one or more lines like this:
25 // fun:FunctionWildCard
27 // This is similar to the "ignore" feature of ThreadSanitizer.
28 // http://code.google.com/p/data-race-test/wiki/ThreadSanitizerIgnores
29 class FunctionBlackList {
31 FunctionBlackList(const std::string &Path);
32 bool isIn(const Function &F);