From: Nico Weber Date: Wed, 25 Feb 2015 03:58:36 +0000 (+0000) Subject: Add comments for two CleanupKinds. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ebf9a058c67560ab48a88b316b929a7bdbfba653;p=platform%2Fupstream%2Fllvm.git Add comments for two CleanupKinds. llvm-svn: 230459 --- diff --git a/clang/lib/CodeGen/EHScopeStack.h b/clang/lib/CodeGen/EHScopeStack.h index 3619b50..6535b76 100644 --- a/clang/lib/CodeGen/EHScopeStack.h +++ b/clang/lib/CodeGen/EHScopeStack.h @@ -75,8 +75,14 @@ template struct DominatingPointer : InvariantValue {}; template struct DominatingValue : DominatingPointer {}; enum CleanupKind : unsigned { + /// Denotes a cleanup that should run when a scope is exited using exceptional + /// control flow (a throw statement leading to stack unwinding, ). EHCleanup = 0x1, + + /// Denotes a cleanup that should run when a scope is exited using normal + /// control flow (falling off the end of the scope, return, goto, ...). NormalCleanup = 0x2, + NormalAndEHCleanup = EHCleanup | NormalCleanup, InactiveCleanup = 0x4,