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

Chris Lattner sabre at nondot.org
Thu Oct 12 16:50:43 PDT 2006



Changes in directory llvm/include/llvm/Support:

CommandLine.h updated: 1.56 -> 1.57
---
Log message:

simplify trivial function


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

 CommandLine.h |    6 +-----
 1 files changed, 1 insertion(+), 5 deletions(-)


Index: llvm/include/llvm/Support/CommandLine.h
diff -u llvm/include/llvm/Support/CommandLine.h:1.56 llvm/include/llvm/Support/CommandLine.h:1.57
--- llvm/include/llvm/Support/CommandLine.h:1.56	Sun Aug 27 07:45:46 2006
+++ llvm/include/llvm/Support/CommandLine.h	Thu Oct 12 18:50:28 2006
@@ -198,11 +198,7 @@
   void setValueStr(const char *S) { ValueStr = S; }
 
   void setFlag(unsigned Flag, unsigned FlagMask) {
-    if (Flags & FlagMask) {
-      error(": Specified two settings for the same option!");
-      exit(1);
-    }
-
+    Flags &= ~FlagMask;
     Flags |= Flag;
   }
 






More information about the llvm-commits mailing list