diff options
| author | Justin Bogner <mail@justinbogner.com> | 2014-01-21 00:35:11 +0000 |
|---|---|---|
| committer | Justin Bogner <mail@justinbogner.com> | 2014-01-21 00:35:11 +0000 |
| commit | 5f83225b49db7207da071ef2955c019b96d04094 (patch) | |
| tree | 6562e1f273e6be5aa6dfbeea737865afbc704393 /lib/CodeGen/CodeGenFunction.h | |
| parent | 5972ab3bb135944b0eb726678ea4d174a4e0706a (diff) | |
| download | clang-5f83225b49db7207da071ef2955c019b96d04094.tar.gz clang-5f83225b49db7207da071ef2955c019b96d04094.tar.bz2 clang-5f83225b49db7207da071ef2955c019b96d04094.tar.xz | |
Revert "CodeGen: Simplify CodeGenFunction::EmitCaseStmt"
I misunderstood the discussion on this. The complexity here is
justified by the malloc overhead it saves.
This reverts commit r199302.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199700 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
| -rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 092eddc7a6..ff3746ad18 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -581,6 +581,11 @@ public: /// on to \arg Dest. void EmitBranchThroughCleanup(JumpDest Dest); + /// isObviouslyBranchWithoutCleanups - Return true if a branch to the + /// specified destination obviously has no cleanups to run. 'false' is always + /// a conservatively correct answer for this method. + bool isObviouslyBranchWithoutCleanups(JumpDest Dest) const; + /// popCatchScope - Pops the catch scope at the top of the EHScope /// stack, emitting any required code (other than the catch handlers /// themselves). |
