diff options
author | Sean Silva <chisophugis@gmail.com> | 2014-08-15 23:39:01 +0000 |
---|---|---|
committer | Sean Silva <chisophugis@gmail.com> | 2014-08-15 23:39:01 +0000 |
commit | db7948499872e3ace0efaa793b15d2b4d547fc58 (patch) | |
tree | 2ac62059c5463fde5a2cdc09075dee3a959c1b39 /llvm/include/llvm/Support/CommandLine.h | |
parent | d539f866ac7ade08504f646f073340170502cdbc (diff) | |
download | bcm5719-llvm-db7948499872e3ace0efaa793b15d2b4d547fc58.tar.gz bcm5719-llvm-db7948499872e3ace0efaa793b15d2b4d547fc58.zip |
Revert "[Support] Promote cl::StringSaver to a separate utility"
This reverts commit r215784 / 3f8a26f6fe16cc76c98ab21db2c600bd7defbbaa.
LLD has 3 StringSaver's, one of which takes a lock when saving the
string... Need to investigate more closely.
llvm-svn: 215790
Diffstat (limited to 'llvm/include/llvm/Support/CommandLine.h')
-rw-r--r-- | llvm/include/llvm/Support/CommandLine.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/CommandLine.h b/llvm/include/llvm/Support/CommandLine.h index ac25c59b904..fdd901200fe 100644 --- a/llvm/include/llvm/Support/CommandLine.h +++ b/llvm/include/llvm/Support/CommandLine.h @@ -24,7 +24,6 @@ #include "llvm/ADT/StringMap.h" #include "llvm/ADT/Twine.h" #include "llvm/Support/Compiler.h" -#include "llvm/Support/StringSaver.h" #include <cassert> #include <climits> #include <cstdarg> @@ -1773,6 +1772,15 @@ void getRegisteredOptions(StringMap<Option*> &Map); // Standalone command line processing utilities. // +/// \brief Saves strings in the inheritor's stable storage and returns a stable +/// raw character pointer. +class StringSaver { + virtual void anchor(); +public: + virtual const char *SaveString(const char *Str) = 0; + virtual ~StringSaver() {}; // Pacify -Wnon-virtual-dtor. +}; + /// \brief Tokenizes a command line that can contain escapes and quotes. // /// The quoting rules match those used by GCC and other tools that use |