Add comments for two CleanupKinds.

llvm-svn: 230459
This commit is contained in:
Nico Weber 2015-02-25 03:58:36 +00:00
parent 03054d489e
commit ebf9a058c6
1 changed files with 6 additions and 0 deletions

View File

@ -75,8 +75,14 @@ template <class T> struct DominatingPointer<T,false> : InvariantValue<T*> {};
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,