From: Eric Christopher Date: Sat, 20 Jun 2020 07:24:57 +0000 (-0700) Subject: As part of using inclusive language within the llvm project, X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=858d38557857bb372fe0a0985c36e8636dc5c90a;p=android-x86%2Fexternal-llvm-project.git As part of using inclusive language within the llvm project, migrate away from the use of blacklist and whitelist. --- diff --git a/llvm/lib/Support/SpecialCaseList.cpp b/llvm/lib/Support/SpecialCaseList.cpp index e465451924a..73f852624a6 100644 --- a/llvm/lib/Support/SpecialCaseList.cpp +++ b/llvm/lib/Support/SpecialCaseList.cpp @@ -126,7 +126,7 @@ bool SpecialCaseList::createInternal(const MemoryBuffer *MB, bool SpecialCaseList::parse(const MemoryBuffer *MB, StringMap &SectionsMap, std::string &Error) { - // Iterate through each line in the blacklist file. + // Iterate through each line in the exclusion list file. SmallVector Lines; MB->getBuffer().split(Lines, '\n'); diff --git a/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp index c9409a8874e..f1f94df038d 100644 --- a/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp @@ -179,7 +179,7 @@ static cl::opt 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(GType)) { if (!SGType->isLiteral()) return SGType->getName(); diff --git a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp index 950f46cd2c0..b69f4162e9c 100644 --- a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp @@ -1051,7 +1051,7 @@ struct MemorySanitizerVisitor : public InstVisitor { 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;