Bring in a BumpPtrStringSaver from lld and simplify the interface.
authorRafael Espindola <rafael.espindola@gmail.com>
Sat, 13 Jun 2015 12:49:52 +0000 (12:49 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sat, 13 Jun 2015 12:49:52 +0000 (12:49 +0000)
commit8e2ed1643a03a892f0d97bcc0098c3c53eee1e6b
tree9454ca714c10252fe1d22305984e3aafdb9d5b33
parent2111b5758f2d542bb0e051e1a11d0df260beb07a
Bring in a BumpPtrStringSaver from lld and simplify the interface.

StringSaver now always saves to a BumpPtrAllocator.

The only reason for having the virtual saveImpl is so lld can have a
thread safe version.

The reason for the distinct BumpPtrStringSaver class is to avoid the
virtual destructor.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239669 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/CommandLine.h
include/llvm/Support/StringSaver.h [new file with mode: 0644]
lib/LibDriver/LibDriver.cpp
lib/Support/CMakeLists.txt
lib/Support/CommandLine.cpp
lib/Support/StringSaver.cpp [new file with mode: 0644]
unittests/Support/CommandLineTest.cpp