summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-04-11 01:09:25 +0000
committerChris Lattner <sabre@nondot.org>2006-04-11 01:09:25 +0000
commit347d9d61368e563630e3e93e5ba83bf42960c78e (patch)
tree46170241212260ca40eacef91b6f2e1761078f83 /include
parentd6d1cbd692dd519263e30d97d6c4c9e453b5c5d5 (diff)
downloadllvm-347d9d61368e563630e3e93e5ba83bf42960c78e.tar.gz
llvm-347d9d61368e563630e3e93e5ba83bf42960c78e.tar.bz2
llvm-347d9d61368e563630e3e93e5ba83bf42960c78e.tar.xz
Add helper methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27576 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/MachineFunction.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h
index 9016ce0f09..83f696f5d7 100644
--- a/include/llvm/CodeGen/MachineFunction.h
+++ b/include/llvm/CodeGen/MachineFunction.h
@@ -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