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 | e25ffdf8a18a4b20c6bab43b25687c0143473853 (patch) | |
tree | 4ca73f6c2e47cb6a0544a600bb4939348231c913 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | b3fd5cfa81b830adbadc96f706e364ac1753f5c6 (diff) | |
download | bcm5719-llvm-e25ffdf8a18a4b20c6bab43b25687c0143473853.tar.gz bcm5719-llvm-e25ffdf8a18a4b20c6bab43b25687c0143473853.zip |
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.
llvm-svn: 199700
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 092eddc7a64..ff3746ad184 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/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). |