]> granicus.if.org Git - clang/commit
CodeGen: Simplify CodeGenFunction::EmitCaseStmt
authorJustin Bogner <mail@justinbogner.com>
Wed, 15 Jan 2014 07:30:30 +0000 (07:30 +0000)
committerJustin Bogner <mail@justinbogner.com>
Wed, 15 Jan 2014 07:30:30 +0000 (07:30 +0000)
commit41afb42c24200d04589b1fa33c44dc98b993239d
tree3dd68963db699abfd7ccf9773cb4d5a5f8d7d40f
parentff2b66229e7374cb4d47fcfd6f255fae54bc9975
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
lib/CodeGen/CGCleanup.cpp
lib/CodeGen/CGStmt.cpp
lib/CodeGen/CodeGenFunction.h