Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
clang/lib/CodeGen/CodeGenFunction.h
Show First 20 Lines • Show All 2,011 Lines • ▼ Show 20 Lines | public: | ||||
llvm::BasicBlock *getUnreachableBlock() { | llvm::BasicBlock *getUnreachableBlock() { | ||||
if (!UnreachableBlock) { | if (!UnreachableBlock) { | ||||
UnreachableBlock = createBasicBlock("unreachable"); | UnreachableBlock = createBasicBlock("unreachable"); | ||||
new llvm::UnreachableInst(getLLVMContext(), UnreachableBlock); | new llvm::UnreachableInst(getLLVMContext(), UnreachableBlock); | ||||
} | } | ||||
return UnreachableBlock; | return UnreachableBlock; | ||||
} | } | ||||
/* Indicates whether we should generate calls using unwindabort, instead of a | |||||
* terminate landingpad, for the current EH Scope. */ | |||||
jroelofs: Other method docs in the file use `///`-style doxygen comments. | |||||
bool shouldUseUnwindAbort() const; | |||||
/* Set the proper unwind personality on the current function. */ | |||||
void setupPersonalityFn(); | |||||
llvm::BasicBlock *getInvokeDest() { | llvm::BasicBlock *getInvokeDest() { | ||||
if (!EHStack.requiresLandingPad()) return nullptr; | if (!EHStack.requiresLandingPad()) return nullptr; | ||||
return getInvokeDestImpl(); | return getInvokeDestImpl(); | ||||
} | } | ||||
bool currentFunctionUsesSEHTry() const { return !!CurSEHParent; } | bool currentFunctionUsesSEHTry() const { return !!CurSEHParent; } | ||||
const TargetInfo &getTarget() const { return Target; } | const TargetInfo &getTarget() const { return Target; } | ||||
▲ Show 20 Lines • Show All 2,855 Lines • Show Last 20 Lines |
Other method docs in the file use ///-style doxygen comments.