[cfe-commits] r41430 - /cfe/trunk/include/clang/Parse/Scope.h
Chris Lattner
sabre at nondot.org
Sat Aug 25 23:03:04 PDT 2007
Author: lattner
Date: Sun Aug 26 01:03:04 2007
New Revision: 41430
URL: http://llvm.org/viewvc/llvm-project?rev=41430&view=rev
Log:
remove some dead enum values.
Modified:
cfe/trunk/include/clang/Parse/Scope.h
Modified: cfe/trunk/include/clang/Parse/Scope.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Parse/Scope.h?rev=41430&r1=41429&r2=41430&view=diff
==============================================================================
--- cfe/trunk/include/clang/Parse/Scope.h (original)
+++ cfe/trunk/include/clang/Parse/Scope.h Sun Aug 26 01:03:04 2007
@@ -38,15 +38,7 @@
/// 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 @@
/// 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;
More information about the cfe-commits
mailing list