clang
6.0.0
|
Enters a new scope for capturing cleanups, all of which will be executed once the scope is exited. More...
#include "/work/www-prereleases/6.0.0/rc2/docsbuild/llvm.src/tools/clang/lib/CodeGen/CodeGenFunction.h"
Public Member Functions | |
RunCleanupsScope (CodeGenFunction &CGF) | |
Enter a new cleanup scope. More... | |
~RunCleanupsScope () | |
Exit this cleanup scope, emitting any accumulated cleanups. More... | |
bool | requiresCleanups () const |
Determine whether this scope requires any cleanups. More... | |
void | ForceCleanup (std::initializer_list< llvm::Value **> ValuesToReload={}) |
Force the emission of cleanups now, instead of waiting until this object is destroyed. More... | |
Protected Attributes | |
bool | PerformCleanup |
CodeGenFunction & | CGF |
Enters a new scope for capturing cleanups, all of which will be executed once the scope is exited.
Definition at line 589 of file CodeGenFunction.h.
|
inlineexplicit |
Enter a new cleanup scope.
Definition at line 605 of file CodeGenFunction.h.
References clang::CodeGen::CodeGenFunction::EHStack, clang::CodeGen::CodeGenFunction::LifetimeExtendedCleanupStack, and clang::CodeGen::EHScopeStack::stable_begin().
|
inline |
Exit this cleanup scope, emitting any accumulated cleanups.
Definition at line 616 of file CodeGenFunction.h.
|
inline |
Force the emission of cleanups now, instead of waiting until this object is destroyed.
ValuesToReload | - A list of values that need to be available at the insertion point after cleanup emission. If cleanup emission created a shared cleanup block, these value pointers will be rewritten. Otherwise, they not will be modified. |
Definition at line 632 of file CodeGenFunction.h.
References clang::CodeGen::CodeGenFunction::PopCleanupBlocks().
Referenced by clang::CodeGen::CodeGenFunction::EmitConstructorBody(), emitCXXDestructor(), clang::CodeGen::CodeGenFunction::GenerateCXXGlobalInitFunc(), and clang::CodeGen::CodeGenFunction::ShouldNullCheckClassCastValue().
|
inline |
Determine whether this scope requires any cleanups.
Definition at line 622 of file CodeGenFunction.h.
References clang::CodeGen::CodeGenFunction::EHStack, and clang::CodeGen::EHScopeStack::stable_begin().
Referenced by emitCXXDestructMethod(), clang::CodeGen::CodeGenFunction::EmitOMPDistributeLoop(), and clang::CodeGen::CodeGenFunction::EmitOMPWorksharingLoop().
|
protected |
Definition at line 601 of file CodeGenFunction.h.
|
protected |
Definition at line 594 of file CodeGenFunction.h.