diff options
| author | Justin Bogner <mail@justinbogner.com> | 2014-01-15 07:30:30 +0000 |
|---|---|---|
| committer | Justin Bogner <mail@justinbogner.com> | 2014-01-15 07:30:30 +0000 |
| commit | 41afb42c24200d04589b1fa33c44dc98b993239d (patch) | |
| tree | 3dd68963db699abfd7ccf9773cb4d5a5f8d7d40f /lib/CodeGen/CodeGenFunction.h | |
| parent | ff2b66229e7374cb4d47fcfd6f255fae54bc9975 (diff) | |
| download | clang-41afb42c24200d04589b1fa33c44dc98b993239d.tar.gz clang-41afb42c24200d04589b1fa33c44dc98b993239d.tar.bz2 clang-41afb42c24200d04589b1fa33c44dc98b993239d.tar.xz | |
CodeGen: Simplify CodeGenFunction::EmitCaseStmt
Way back in r129652 we tried to avoid emitting an empty block at -O0
for switch cases that did nothing but break. This led to a poor
debugging experience as reported in PR9796, so we disabled the
optimization for -O0 but left it in for higher optimization levels in
r154420.
Since the whole point of this was to improve -O0, it's silly to keep
the complexity at all.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199302 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
| -rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 37bbcf3f34..22bb6c3e19 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -581,11 +581,6 @@ 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). |
