diff options
author | Zarko Todorovski <zarko@ca.ibm.com> | 2021-11-08 09:44:26 -0500 |
---|---|---|
committer | Zarko Todorovski <zarko@ca.ibm.com> | 2021-11-08 10:05:52 -0500 |
commit | c4396b77ae79d9273ab79c3615c2596940ade06d (patch) | |
tree | 3a149518564c88982f7c33040c78efa5a9e7fbb1 /llvm/tools/llvm-cfi-verify | |
parent | 2c37ae6d14cf263724720f56fc34b4579a6e5c1c (diff) | |
download | llvm-c4396b77ae79d9273ab79c3615c2596940ade06d.zip llvm-c4396b77ae79d9273ab79c3615c2596940ade06d.tar.gz llvm-c4396b77ae79d9273ab79c3615c2596940ade06d.tar.bz2 |
[LLVM][llvm-cfi] Inclusive language: replace uses of blacklist with ignorelist
Replace the description and file names for this argument. As far as I understand
this is a positional argument and I don't believe this changes breaks any existing
interfaces.
Reviewed By: hctim, MaskRay
Differential Revision: https://reviews.llvm.org/D113316
Diffstat (limited to 'llvm/tools/llvm-cfi-verify')
-rw-r--r-- | llvm/tools/llvm-cfi-verify/llvm-cfi-verify.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/llvm/tools/llvm-cfi-verify/llvm-cfi-verify.cpp b/llvm/tools/llvm-cfi-verify/llvm-cfi-verify.cpp index 3cb0e84..8c43ea8 100644 --- a/llvm/tools/llvm-cfi-verify/llvm-cfi-verify.cpp +++ b/llvm/tools/llvm-cfi-verify/llvm-cfi-verify.cpp @@ -36,10 +36,10 @@ static cl::OptionCategory CFIVerifyCategory("CFI Verify Options"); cl::opt<std::string> InputFilename(cl::Positional, cl::desc("<input file>"), cl::Required, cl::cat(CFIVerifyCategory)); -cl::opt<std::string> BlacklistFilename(cl::Positional, - cl::desc("[blacklist file]"), - cl::init("-"), - cl::cat(CFIVerifyCategory)); +cl::opt<std::string> IgnorelistFilename(cl::Positional, + cl::desc("[ignorelist file]"), + cl::init("-"), + cl::cat(CFIVerifyCategory)); cl::opt<bool> PrintGraphs( "print-graphs", cl::desc("Print graphs around indirect CF instructions in DOT format."), @@ -103,7 +103,7 @@ static void printInstructionInformation(const FileAnalysis &Analysis, static void printInstructionStatus(unsigned BlameLine, bool CFIProtected, const DILineInfo &LineInfo) { if (BlameLine) { - outs() << "Blacklist Match: " << BlacklistFilename << ":" << BlameLine + outs() << "Ignorelist Match: " << IgnorelistFilename << ":" << BlameLine << "\n"; if (CFIProtected) outs() << "====> Unexpected Protected\n"; @@ -240,9 +240,9 @@ printIndirectCFInstructions(FileAnalysis &Analysis, if (!SpecialCaseList) return; - outs() << "\nBlacklist Results:\n"; + outs() << "\nIgnorelist Results:\n"; for (const auto &KV : BlameCounter) { - outs() << " " << BlacklistFilename << ":" << KV.first << " affects " + outs() << " " << IgnorelistFilename << ":" << KV.first << " affects " << KV.second << " indirect CF instructions.\n"; } } @@ -265,12 +265,12 @@ int main(int argc, char **argv) { PrintBlameContext.setValue(PrintBlameContextAll); std::unique_ptr<SpecialCaseList> SpecialCaseList; - if (BlacklistFilename != "-") { + if (IgnorelistFilename != "-") { std::string Error; - SpecialCaseList = SpecialCaseList::create({BlacklistFilename}, + SpecialCaseList = SpecialCaseList::create({IgnorelistFilename}, *vfs::getRealFileSystem(), Error); if (!SpecialCaseList) { - errs() << "Failed to get blacklist: " << Error << "\n"; + errs() << "Failed to get ignorelist: " << Error << "\n"; exit(EXIT_FAILURE); } } |