mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-13 19:32:41 +00:00
As part of using inclusive language within the llvm project,
migrate away from the use of blacklist and whitelist.
This commit is contained in:
parent
e5e593e9e3
commit
858d385578
@ -126,7 +126,7 @@ bool SpecialCaseList::createInternal(const MemoryBuffer *MB,
|
||||
bool SpecialCaseList::parse(const MemoryBuffer *MB,
|
||||
StringMap<size_t> &SectionsMap,
|
||||
std::string &Error) {
|
||||
// Iterate through each line in the blacklist file.
|
||||
// Iterate through each line in the exclusion list file.
|
||||
SmallVector<StringRef, 16> Lines;
|
||||
MB->getBuffer().split(Lines, '\n');
|
||||
|
||||
|
@ -179,7 +179,7 @@ static cl::opt<bool> ClEventCallbacks(
|
||||
static StringRef GetGlobalTypeString(const GlobalValue &G) {
|
||||
// Types of GlobalVariables are always pointer types.
|
||||
Type *GType = G.getValueType();
|
||||
// For now we support blacklisting struct types only.
|
||||
// For now we support excluding struct types only.
|
||||
if (StructType *SGType = dyn_cast<StructType>(GType)) {
|
||||
if (!SGType->isLiteral())
|
||||
return SGType->getName();
|
||||
|
@ -1051,7 +1051,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
|
||||
BasicBlock *ActualFnStart;
|
||||
|
||||
// The following flags disable parts of MSan instrumentation based on
|
||||
// blacklist contents and command-line options.
|
||||
// exclusion list contents and command-line options.
|
||||
bool InsertChecks;
|
||||
bool PropagateShadow;
|
||||
bool PoisonStack;
|
||||
|
Loading…
x
Reference in New Issue
Block a user