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 | 4c5c99f91a8ffa3fd342801a0b49607e9ebcb8f3 (patch) | |
tree | 130dec7fa95bfe42ed6b01449488201e91d8ed28 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 79b75d90483869cfff7b86ab92978b7c88e79fb8 (diff) | |
download | llvm-4c5c99f91a8ffa3fd342801a0b49607e9ebcb8f3.zip llvm-4c5c99f91a8ffa3fd342801a0b49607e9ebcb8f3.tar.gz llvm-4c5c99f91a8ffa3fd342801a0b49607e9ebcb8f3.tar.bz2 |
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.
llvm-svn: 199302
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 37bbcf3..22bb6c3 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/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). |