summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2015-02-19 19:51:36 +0000
committerMichael Gottesman <mgottesman@apple.com>2015-02-19 19:51:36 +0000
commit2e0e4e07b475953cc21f3b846ce63bb47b4745af (patch)
treeab6a4b557853e6261c39c58d239ba26bba44a46c /clang/lib/CodeGen/CodeGenFunction.cpp
parent6f729fa6754414064160fa4105346bbe1cd46968 (diff)
downloadbcm5719-llvm-2e0e4e07b475953cc21f3b846ce63bb47b4745af.tar.gz
bcm5719-llvm-2e0e4e07b475953cc21f3b846ce63bb47b4745af.zip
[objc-arc] Convert the bodies of ARCInstKind predicates into covered switches.
This is much better than the previous manner of just using short-curcuiting booleans from: 1. A "naive" efficiency perspective: we do not have to rely on the compiler to change the short circuiting boolean operations into a switch. 2. An understanding perspective by making the implicit behavior of negative predicates explicit. 3. A maintainability perspective through the covered switch flag making it easy to know where to update code when adding new ARCInstKinds. llvm-svn: 229906
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud