diff options
author | Chris Lattner <sabre@nondot.org> | 2007-04-12 00:36:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-04-12 00:36:29 +0000 |
commit | 69d6f1358ca8c442a65fd8d5900f7296fbb2762d (patch) | |
tree | 6aae62489d234b79630bb6ea9d19a759e4c0e87f /include/llvm/Support/CommandLine.h | |
parent | cfa71e026dc09ac0c7207796a3a47fd5efba236a (diff) | |
download | external_llvm-69d6f1358ca8c442a65fd8d5900f7296fbb2762d.zip external_llvm-69d6f1358ca8c442a65fd8d5900f7296fbb2762d.tar.gz external_llvm-69d6f1358ca8c442a65fd8d5900f7296fbb2762d.tar.bz2 |
improve the patch for PR1318 to also support grouped options with custom
handlers (like the pass list). My previous fix only supported *new* command
line options, not additions to old ones.
This fixes test/Feature/load_module.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35935 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/CommandLine.h')
-rw-r--r-- | include/llvm/Support/CommandLine.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index 328aae1..c31d79f 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -57,6 +57,10 @@ void ParseEnvironmentOptions(const char *progName, const char *envvar, /// CommandLine utilities to print their own version string. void SetVersionPrinter(void (*func)()); + +// MarkOptionsChanged - Internal helper function. +void MarkOptionsChanged(); + //===----------------------------------------------------------------------===// // Flags permitted to be passed to command line arguments // @@ -469,6 +473,7 @@ public: assert(findOption(Name) == Values.size() && "Option already exists!"); Values.push_back(std::make_pair(Name, std::make_pair(static_cast<DataType>(V),HelpStr))); + MarkOptionsChanged(); } /// removeLiteralOption - Remove the specified option. |