From: Rafael Espindola Date: Sat, 13 Jun 2015 12:49:52 +0000 (+0000) Subject: Bring in a BumpPtrStringSaver from lld and simplify the interface. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=454adf645480245725c74fdbe8840ceff039ef64;p=platform%2Fupstream%2Fllvm.git 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. llvm-svn: 239669 --- diff --git a/llvm/include/llvm/Support/CommandLine.h b/llvm/include/llvm/Support/CommandLine.h index 1ad8a3b..ed80921 100644 --- a/llvm/include/llvm/Support/CommandLine.h +++ b/llvm/include/llvm/Support/CommandLine.h @@ -33,6 +33,9 @@ namespace llvm { +class BumpPtrStringSaver; +class StringSaver; + /// cl Namespace - This namespace contains all of the command line option /// processing machinery. It is intentionally a short name to make qualified /// usage concise. @@ -1676,16 +1679,6 @@ StringMap