diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-10-14 23:20:44 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-10-14 23:20:44 +0000 |
commit | c649458d184f07e00d009d7b15939ed1e494e1b1 (patch) | |
tree | 3a26007508ba8e380a04e1317a5754d95307afbe /include/llvm/Function.h | |
parent | bc4ecce4a99d230fe3e17861ebe54b3622e61335 (diff) |
Added getEntryNode() and getExitNode() functions.
The latter are actually bogus and will be fixed by me soon.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@802 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Function.h')
-rw-r--r-- | include/llvm/Function.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h index fe878bf45e..1acc9af935 100644 --- a/include/llvm/Function.h +++ b/include/llvm/Function.h @@ -63,7 +63,12 @@ public: inline const BasicBlocksType &getBasicBlocks() const { return BasicBlocks; } inline BasicBlocksType &getBasicBlocks() { return BasicBlocks; } - + inline const BasicBlock* getEntryNode() const { return front(); } + inline BasicBlock* getEntryNode() { return front(); } + + inline const BasicBlock* getExitNode() const { return back(); } + inline BasicBlock* getExitNode() { return back(); } + //===--------------------------------------------------------------------===// // BasicBlock iterator forwarding functions // |