[llvm-commits] [llvm] r141435 - /llvm/trunk/include/llvm/CodeGen/MachineBasicBlock.h

Bill Wendling isanbard at gmail.com
Fri Oct 7 16:06:01 PDT 2011


Author: void
Date: Fri Oct  7 18:06:01 2011
New Revision: 141435

URL: http://llvm.org/viewvc/llvm-project?rev=141435&view=rev
Log:
Add a bool value to set the IsLandingPad flag to.

Modified:
    llvm/trunk/include/llvm/CodeGen/MachineBasicBlock.h

Modified: llvm/trunk/include/llvm/CodeGen/MachineBasicBlock.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineBasicBlock.h?rev=141435&r1=141434&r2=141435&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineBasicBlock.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineBasicBlock.h Fri Oct  7 18:06:01 2011
@@ -232,7 +232,7 @@
 
   /// 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.





More information about the llvm-commits mailing list