OSDN Git Service

Add a bool value to set the IsLandingPad flag to.
authorBill Wendling <isanbard@gmail.com>
Fri, 7 Oct 2011 23:06:01 +0000 (23:06 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 7 Oct 2011 23:06:01 +0000 (23:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141435 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineBasicBlock.h

index 397e59e..5a20e95 100644 (file)
@@ -232,7 +232,7 @@ public:
 
   /// setIsLandingPad - Indicates the block is a landing pad.  That is
   /// this basic block is entered via an exception handler.
-  void setIsLandingPad() { IsLandingPad = true; }
+  void setIsLandingPad(bool V = true) { IsLandingPad = V; }
 
   /// getLandingPadSuccessor - If this block has a successor that is a landing
   /// pad, return it. Otherwise return NULL.