aboutsummaryrefslogtreecommitdiff
path: root/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-09-28 21:49:18 +0000
committerDevang Patel <dpatel@apple.com>2007-09-28 21:49:18 +0000
commitd9363c3a80168283b3da518b4e17f545a6246857 (patch)
tree913f8155e3a3d191da08e41590f1f7f9bf8d63f9 /CodeGen/CodeGenFunction.h
parentbcb07d5d3f4e47b72f7a3a5f62b75b7dabe8c68d (diff)
Do not codegen dummy block.
Dummy block is an empty block with no predecessors. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42451 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CodeGenFunction.h')
-rw-r--r--CodeGen/CodeGenFunction.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/CodeGen/CodeGenFunction.h b/CodeGen/CodeGenFunction.h
index 318368d5eb..2f7e0736e0 100644
--- a/CodeGen/CodeGenFunction.h
+++ b/CodeGen/CodeGenFunction.h
@@ -276,7 +276,11 @@ public:
/// the result should be returned.
RValue EmitAnyExpr(const Expr *E, llvm::Value *AggLoc = 0,
bool isAggLocVolatile = false);
-
+
+ /// isDummyBlock - Return true if BB is an empty basic block
+ /// with no predecessors.
+ static bool isDummyBlock(const llvm::BasicBlock *BB);
+
//===--------------------------------------------------------------------===//
// Declaration Emission
//===--------------------------------------------------------------------===//