[llvm-commits] CVS: llvm/include/llvm/Support/CommandLine.h

Chris Lattner sabre at nondot.org
Wed Apr 11 17:36:51 PDT 2007



Changes in directory llvm/include/llvm/Support:

CommandLine.h updated: 1.63 -> 1.64
---
Log message:

improve the patch for PR1318: http://llvm.org/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


---
Diffs of the changes:  (+5 -0)

 CommandLine.h |    5 +++++
 1 files changed, 5 insertions(+)


Index: llvm/include/llvm/Support/CommandLine.h
diff -u llvm/include/llvm/Support/CommandLine.h:1.63 llvm/include/llvm/Support/CommandLine.h:1.64
--- llvm/include/llvm/Support/CommandLine.h:1.63	Fri Apr  6 16:06:55 2007
+++ llvm/include/llvm/Support/CommandLine.h	Wed Apr 11 19:36:29 2007
@@ -57,6 +57,10 @@
 ///                     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 @@
     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.






More information about the llvm-commits mailing list