r230459 - Add comments for two CleanupKinds.

Nico Weber nicolasweber at gmx.de
Tue Feb 24 19:58:36 PST 2015


Author: nico
Date: Tue Feb 24 21:58:36 2015
New Revision: 230459

URL: http://llvm.org/viewvc/llvm-project?rev=230459&view=rev
Log:
Add comments for two CleanupKinds.

Modified:
    cfe/trunk/lib/CodeGen/EHScopeStack.h

Modified: cfe/trunk/lib/CodeGen/EHScopeStack.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/EHScopeStack.h?rev=230459&r1=230458&r2=230459&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/EHScopeStack.h (original)
+++ cfe/trunk/lib/CodeGen/EHScopeStack.h Tue Feb 24 21:58:36 2015
@@ -75,8 +75,14 @@ template <class T> struct DominatingPoin
 template <class T> struct DominatingValue<T*> : DominatingPointer<T> {};
 
 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,





More information about the cfe-commits mailing list