From 134cb5d30fa4ffcd9dc52d791138c5a4ae17807e Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Mon, 18 Apr 2016 01:24:58 +0000 Subject: BitcodeWriter: WorkList => Worklist, NFC I have no idea how I chose two different spellings in the space of a couple of weeks, but now I can't remember what to use where. Choose "Worklist". llvm-svn: 266582 --- llvm/lib/Bitcode/Writer/ValueEnumerator.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'llvm/lib/Bitcode/Writer') diff --git a/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp b/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp index ff87052c4ef..9991c6ecce5 100644 --- a/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp +++ b/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp @@ -575,10 +575,10 @@ bool ValueEnumerator::insertMetadata(unsigned F, const Metadata *MD) { } void ValueEnumerator::dropFunctionFromOps(const MDNode &N) { - SmallVector WorkList; - WorkList.push_back(&N); - while (!WorkList.empty()) { - for (const Metadata *Op : WorkList.pop_back_val()->operands()) { + SmallVector Worklist; + Worklist.push_back(&N); + while (!Worklist.empty()) { + for (const Metadata *Op : Worklist.pop_back_val()->operands()) { if (!Op) continue; @@ -594,7 +594,7 @@ void ValueEnumerator::dropFunctionFromOps(const MDNode &N) { // Drop the tag, and if it's a node (with potential operands), queue it. Entry.F = 0; if (auto *OpN = dyn_cast(Op)) - WorkList.push_back(OpN); + Worklist.push_back(OpN); } } } -- cgit v1.2.3