diff options
author | Chris Lattner <sabre@nondot.org> | 2009-10-19 05:51:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-10-19 05:51:03 +0000 |
commit | aa1332ed72c7f753527dff073a19a0376c4c3437 (patch) | |
tree | eb7b20f7b8375bc8adfc02e2c7d36f3ee7ecbf81 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 022ecf01b39cc175e2c12e616a35acc108d58842 (diff) | |
download | bcm5719-llvm-aa1332ed72c7f753527dff073a19a0376c4c3437.tar.gz bcm5719-llvm-aa1332ed72c7f753527dff073a19a0376c4c3437.zip |
simplify.
llvm-svn: 84465
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index 304900f7115..3e4c8232a64 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -517,9 +517,7 @@ static void WriteModuleMetadata(const ValueEnumerator &VE, } // Code: [strchar x N] - const char *StrBegin = MDS->begin(); - for (unsigned i = 0, e = MDS->length(); i != e; ++i) - Record.push_back(StrBegin[i]); + Record.append(MDS->begin(), MDS->end()); // Emit the finished record. Stream.EmitRecord(bitc::METADATA_STRING, Record, MDSAbbrev); |