[Option] Store arg strings in a set backed by a BumpPtrAllocator
authorReid Kleckner <reid@kleckner.net>
Mon, 15 Jul 2013 13:46:24 +0000 (13:46 +0000)
committerReid Kleckner <reid@kleckner.net>
Mon, 15 Jul 2013 13:46:24 +0000 (13:46 +0000)
commit95695c8bb3fcfdf0c728c59d03bb89b2cea80f07
tree7b507a6f899b0cf8ceae2abfb316aa17ead25343
parent4c275c31aa2a4aa357daa518505a199580d15309
[Option] Store arg strings in a set backed by a BumpPtrAllocator

No functionality change.

This is preparing to move response file parsing into lib/Option so it
can be shared between clang and lld.  This change isn't just a
micro-optimization.  Clang's driver uses a std::set<std::string> to
unique arguments while parsing response files, so this matches that.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186319 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Option/ArgList.h
lib/Option/ArgList.cpp