aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-03-27 23:22:31 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-03-27 23:22:31 +0000
commit2766e4d4886c47a310b323c8f400162f6dd9b046 (patch)
tree0e152e47ad90e1b664eb8ab90f607918d49a2ed9 /llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
parent6565a0d4b2c98722eb8fee9093cdde4f37928986 (diff)
downloadllvm-2766e4d4886c47a310b323c8f400162f6dd9b046.zip
llvm-2766e4d4886c47a310b323c8f400162f6dd9b046.tar.gz
llvm-2766e4d4886c47a310b323c8f400162f6dd9b046.tar.bz2
BitcodeWriter: Simplify tracking of function-local metadata, NFC
We don't really need a separate vector here; instead, point at a range inside the main MDs array. This matches how r264551 references the ranges of strings and non-strings. llvm-svn: 264552
Diffstat (limited to 'llvm/lib/Bitcode/Writer/ValueEnumerator.cpp')
-rw-r--r--llvm/lib/Bitcode/Writer/ValueEnumerator.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp b/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
index 69cafb7..812baf2 100644
--- a/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
+++ b/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
@@ -554,9 +554,6 @@ void ValueEnumerator::EnumerateFunctionLocalMetadata(
MetadataID = MDs.size();
EnumerateValue(Local->getValue());
-
- // Also, collect all function-local metadata for easy access.
- FunctionLocalMDs.push_back(Local);
}
void ValueEnumerator::organizeMetadata() {
@@ -778,7 +775,6 @@ void ValueEnumerator::purgeFunction() {
Values.resize(NumModuleValues);
MDs.resize(NumModuleMDs);
BasicBlocks.clear();
- FunctionLocalMDs.clear();
}
static void IncorporateFunctionInfoGlobalBBIDs(const Function *F,