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;
   }
 



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to