mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
f9eb672e1c
Summary: This change allows users to create SpecialCaseList objects from multiple local files. This is needed to implement a proper support for -fsanitize-blacklist flag (allow users to specify multiple blacklists, in addition to default blacklist, see PR22431). DFSan can also benefit from this change, as DFSan instrumentation pass now accepts ABI-lists both from -fsanitize-blacklist= and -mllvm -dfsan-abilist flags. Go bindings are fixed accordingly. Test Plan: regression test suite Reviewers: pcc Subscribers: llvm-commits, axw, kcc Differential Revision: http://reviews.llvm.org/D7367 llvm-svn: 228155
39 lines
1.3 KiB
C++
39 lines
1.3 KiB
C++
//===- InstrumentationBindings.h - instrumentation bindings -----*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file defines C bindings for the Transforms/Instrumentation component.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_BINDINGS_GO_LLVM_INSTRUMENTATIONBINDINGS_H
|
|
#define LLVM_BINDINGS_GO_LLVM_INSTRUMENTATIONBINDINGS_H
|
|
|
|
#include "llvm-c/Core.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
// FIXME: These bindings shouldn't be Go-specific and should eventually move to
|
|
// a (somewhat) less stable collection of C APIs for use in creating bindings of
|
|
// LLVM in other languages.
|
|
|
|
void LLVMAddAddressSanitizerFunctionPass(LLVMPassManagerRef PM);
|
|
void LLVMAddAddressSanitizerModulePass(LLVMPassManagerRef PM);
|
|
void LLVMAddThreadSanitizerPass(LLVMPassManagerRef PM);
|
|
void LLVMAddMemorySanitizerPass(LLVMPassManagerRef PM);
|
|
void LLVMAddDataFlowSanitizerPass(LLVMPassManagerRef PM, int ABIListFilesNum,
|
|
const char **ABIListFiles);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|