aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-04-17 00:54:30 +0000
committerChris Lattner <sabre@nondot.org>2011-04-17 00:54:30 +0000
commitbc204c8043167f52f6b7f7498f33fe2efc0c1854 (patch)
tree65d629963f4cec36e9f6db5fba961366377d1cd1 /clang/lib/CodeGen/CodeGenFunction.h
parent30107ed600da4cd3a5bbb5d70cd6e97b618fff38 (diff)
downloadllvm-bc204c8043167f52f6b7f7498f33fe2efc0c1854.zip
llvm-bc204c8043167f52f6b7f7498f33fe2efc0c1854.tar.gz
llvm-bc204c8043167f52f6b7f7498f33fe2efc0c1854.tar.bz2
implement rdar://9289524 - case followed immediately by break results in empty IR block,
a -O0 code quality issue. llvm-svn: 129652
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index fa86f05..913b5df 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -769,6 +769,11 @@ public:
/// block through the normal cleanup handling code (if any) and then
/// 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;
/// EmitBranchThroughEHCleanup - Emit a branch from the current
/// insert block through the EH cleanup handling code (if any) and