]> granicus.if.org Git - clang/commitdiff
remove some dead enum values.
authorChris Lattner <sabre@nondot.org>
Sun, 26 Aug 2007 06:03:04 +0000 (06:03 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 26 Aug 2007 06:03:04 +0000 (06:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41430 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Parse/Scope.h

index 7f721f803de8dc49368a47b05e1f4fdd0a1214fd..b7a47c55ed61760256d6a22ba9a67a7a5e514e6a 100644 (file)
@@ -38,15 +38,7 @@ public:
     
     /// ContinueScope - This is a while,do,for, which can have continue
     /// stmt embedded into it.
-    ContinueScope = 0x04,
-    
-    /// HasBreak - This flag is set on 'BreakScope' scopes, when they actually
-    /// do contain a break stmt.
-    HasBreak      = 0x08,
-    
-    /// HasContinue - This flag is set on 'ContinueScope' scopes, when they
-    /// actually do contain a continue stmt.
-    HasContinue   = 0x10
+    ContinueScope = 0x04
   };
 private:
   /// The parent scope for this scope.  This is null for the translation-unit
@@ -118,8 +110,6 @@ public:
   /// Init - This is used by the parser to implement scope caching.
   ///
   void Init(Scope *Parent, unsigned ScopeFlags) {
-    assert((ScopeFlags & (HasBreak|HasContinue)) == 0 &&
-           "These flags can't be set in ctor!");
     AnyParent = Parent;
     Depth = AnyParent ? AnyParent->Depth+1 : 0;
     Flags = ScopeFlags;