Add helper methods.
authorChris Lattner <sabre@nondot.org>
Tue, 11 Apr 2006 01:09:25 +0000 (01:09 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 11 Apr 2006 01:09:25 +0000 (01:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27576 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineFunction.h

index 9016ce0f09fec6f0f5c075b5c8b07c36df6b7695..83f696f5d7f2f50ae823568e347dcffb168e2ac6 100644 (file)
@@ -192,8 +192,10 @@ public:
   typedef std::vector<unsigned>::const_iterator liveout_iterator;
   livein_iterator livein_begin() const { return LiveIns.begin(); }
   livein_iterator livein_end()   const { return LiveIns.end(); }
+  bool            livein_empty() const { return LiveIns.empty(); }
   liveout_iterator liveout_begin() const { return LiveOuts.begin(); }
   liveout_iterator liveout_end()   const { return LiveOuts.end(); }
+  bool             liveout_empty() const { return LiveOuts.empty(); }
 
   /// getBlockNumbered - MachineBasicBlocks are automatically numbered when they
   /// are inserted into the machine function.  The block number for a machine