summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-04-02 15:09:42 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-04-02 15:09:42 +0000
commit9342911f31ff177052d201f1b78c83ab0783a4d6 (patch)
tree44ce4d55fe1e481d3d9e551f3411358ead70c921 /llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
parent8742de9b20eb8b1960403842b38dcf0c80aa586b (diff)
downloadbcm5719-llvm-9342911f31ff177052d201f1b78c83ab0783a4d6.tar.gz
bcm5719-llvm-9342911f31ff177052d201f1b78c83ab0783a4d6.zip
BitcodeWriter: Further unify function metadata, NFC
Further unify the handling of function-local metadata with global metadata, by exposing the same interface in ValueEnumerator. Both contexts use the same accessors: - getMDStrings(): get the strings for this block. - getNonMDStrings(): get the non-strings for this block. A future commit will start adding strings to the function-block. llvm-svn: 265224
Diffstat (limited to 'llvm/lib/Bitcode/Writer/ValueEnumerator.cpp')
-rw-r--r--llvm/lib/Bitcode/Writer/ValueEnumerator.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp b/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
index 4e0a9dad2f8..5c5f05ca8f9 100644
--- a/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
+++ b/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
@@ -709,6 +709,7 @@ void ValueEnumerator::incorporateFunction(const Function &F) {
InstructionCount = 0;
NumModuleValues = Values.size();
NumModuleMDs = MDs.size();
+ NumMDStrings = 0;
// Adding function arguments to the value table.
for (const auto &I : F.args())
OpenPOWER on IntegriCloud