Try to speed up the slowest parts of the CommandLine library
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 19 Sep 2009 10:01:45 +0000 (10:01 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 19 Sep 2009 10:01:45 +0000 (10:01 +0000)
commit461c87655b89fd44604bf705b68e7541d2b721a7
treec17bdc3d15b8ac3f2d090ddac467a98d6ff4c64d
parentce31910eae5bd4896fa6c27798e7b26885691d3b
Try to speed up the slowest parts of the CommandLine library

- Replace std::map<std::string with StringMap
- Eliminate unnecessary std::string copies
- ~10% speed-up for clang's testsuite on my machine (debug build)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82312 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/CommandLine.cpp