diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-03-26 15:39:31 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-03-26 15:39:31 +0000 |
commit | e6f5123e16debe7b6894827aec14f42ecddd89bf (patch) | |
tree | ce21d5231331b79b935859f7f72d198a6d937a04 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 0578aaf77cd9fafcce0a12cef9682dedeba2b8f0 (diff) | |
download | bcm5719-llvm-e6f5123e16debe7b6894827aec14f42ecddd89bf.tar.gz bcm5719-llvm-e6f5123e16debe7b6894827aec14f42ecddd89bf.zip |
Driver: Factor string vector push_back into a helper class and optimize it.
Due to lack of move semantics we would create a temporary std::string from the
string literal, copy it into the vector and discard the temporary. This leads
to massive code bloat, optimizing it saves 50k on i386-linux-Release+Asserts.
While there add a two-element overload for push_back, simplifying code a bit.
llvm-svn: 153441
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions