aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support/CommandLine.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-28 02:08:47 +0000
committerChris Lattner <sabre@nondot.org>2009-03-28 02:08:47 +0000
commit5ea5ba853015513f2b619a58a1aee3ab65726998 (patch)
tree552b0233a124834ede9ca93feab8238ece0210f9 /include/llvm/Support/CommandLine.h
parentd38e97f8f5604a6e487633e94b489647c49ad733 (diff)
downloadexternal_llvm-5ea5ba853015513f2b619a58a1aee3ab65726998.zip
external_llvm-5ea5ba853015513f2b619a58a1aee3ab65726998.tar.gz
external_llvm-5ea5ba853015513f2b619a58a1aee3ab65726998.tar.bz2
move a large method out of line.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67892 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/CommandLine.h')
-rw-r--r--include/llvm/Support/CommandLine.h18
1 files changed, 2 insertions, 16 deletions
diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h
index 52052e4..12eb3a5 100644
--- a/include/llvm/Support/CommandLine.h
+++ b/include/llvm/Support/CommandLine.h
@@ -540,22 +540,8 @@ class parser<bool> : public basic_parser<bool> {
bool IsInvertable; // Should we synthezise a -xno- style option?
const char *ArgStr;
public:
- void getExtraOptionNames(std::vector<const char*> &OptionNames) {
- if (IsInvertable) {
- char *s = new char [strlen(ArgStr) + 3 + 1];
- s[0] = ArgStr[0];
- if (strncmp(ArgStr+1, "no-", 3) == 0)
- strcpy(&s[1], &ArgStr[4]);
- else {
- s[1] = 'n';
- s[2] = 'o';
- s[3] = '-';
- strcpy(&s[4], ArgStr+1);
- }
- OptionNames.push_back(s);
- }
- }
-
+ void getExtraOptionNames(std::vector<const char*> &OptionNames);
+
// parse - Return true on error.
bool parse(Option &O, const char *ArgName, const std::string &Arg, bool &Val);