summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-04-18 01:24:58 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-04-18 01:24:58 +0000
commit134cb5d30fa4ffcd9dc52d791138c5a4ae17807e (patch)
treed6582fe0c17ef21bad09f228495c16a9d5649167
parent236cea74dfda56dc62f847c3f416b9a2c212485d (diff)
downloadbcm5719-llvm-134cb5d30fa4ffcd9dc52d791138c5a4ae17807e.tar.gz
bcm5719-llvm-134cb5d30fa4ffcd9dc52d791138c5a4ae17807e.zip
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
-rw-r--r--llvm/lib/Bitcode/Writer/ValueEnumerator.cpp10
1 files changed, 5 insertions, 5 deletions
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<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::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<MDNode>(Op))
- WorkList.push_back(OpN);
+ Worklist.push_back(OpN);
}
}
}
OpenPOWER on IntegriCloud