aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CompilerDriver/Tool.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-11-11 03:45:59 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-11-11 03:45:59 +0000
commit8665c7e39d9b8922157d42b5701feb7e8d8c1ee5 (patch)
tree6fb7ea949b5a5ccaa8df1191b9af85533b23bd24 /llvm/lib/CompilerDriver/Tool.cpp
parent5e1f78aeb1ef11a2d1d9d58d8e6c2dd556310f8d (diff)
downloadllvm-8665c7e39d9b8922157d42b5701feb7e8d8c1ee5.zip
llvm-8665c7e39d9b8922157d42b5701feb7e8d8c1ee5.tar.gz
llvm-8665c7e39d9b8922157d42b5701feb7e8d8c1ee5.tar.bz2
Rewrite splitLines using StringRef; this is much simpler, and also now avoids
tons of std::string trashing. I plan to move this and other fun string munging utilities to a StringRefExtras.h at some point if no one beats me to it. On a synthetic benchmark on x86_64, llvm-gcc actually generates code thats 10% faster using the StringRef version. gcc miscompiles the synthetic benchmark, which I'm crossing my fingers and hoping won't happen here. clang compiles the sythetic benchmark correctly (wootness), but the StringRef version is slower. Silly clang. llvm-svn: 86799
Diffstat (limited to 'llvm/lib/CompilerDriver/Tool.cpp')
0 files changed, 0 insertions, 0 deletions