From de0467279778d56110621a2d6f7a004ecc553654 Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Sun, 14 Oct 2001 23:20:44 +0000 Subject: [PATCH] Added getEntryNode() and getExitNode() functions. The latter are actually bogus and will be fixed by me soon. llvm-svn: 802 --- llvm/include/llvm/Function.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/llvm/include/llvm/Function.h b/llvm/include/llvm/Function.h index fe878bf45e88..1acc9af935db 100644 --- a/llvm/include/llvm/Function.h +++ b/llvm/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 //