[llvm] r266582 - BitcodeWriter: WorkList => Worklist, NFC
Duncan P. N. Exon Smith via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 17 18:24:58 PDT 2016
Author: dexonsmith
Date: Sun Apr 17 20:24:58 2016
New Revision: 266582
URL: http://llvm.org/viewvc/llvm-project?rev=266582&view=rev
Log:
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".
Modified:
llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp
Modified: llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp?rev=266582&r1=266581&r2=266582&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp (original)
+++ llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp Sun Apr 17 20:24:58 2016
@@ -575,10 +575,10 @@ bool ValueEnumerator::insertMetadata(uns
}
void ValueEnumerator::dropFunctionFromOps(const MDNode &N) {
- SmallVector<const MDNode *, 64> WorkList;
- WorkList.push_back(&N);
- while (!WorkList.empty()) {
- for (const Metadata *Op : WorkList.pop_back_val()->operands()) {
+ SmallVector<const MDNode *, 64> 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::dropFunctionFromOp
// Drop the tag, and if it's a node (with potential operands), queue it.
Entry.F = 0;
if (auto *OpN = dyn_cast<MDNode>(Op))
- WorkList.push_back(OpN);
+ Worklist.push_back(OpN);
}
}
}
More information about the llvm-commits
mailing list