diff options
author | Michael Gottesman <mgottesman@apple.com> | 2015-02-19 19:51:36 +0000 |
---|---|---|
committer | Michael Gottesman <mgottesman@apple.com> | 2015-02-19 19:51:36 +0000 |
commit | 2e0e4e07b475953cc21f3b846ce63bb47b4745af (patch) | |
tree | ab6a4b557853e6261c39c58d239ba26bba44a46c /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 6f729fa6754414064160fa4105346bbe1cd46968 (diff) | |
download | bcm5719-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