aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-14 23:26:24 +0000
committerChris Lattner <sabre@nondot.org>2001-10-14 23:26:24 +0000
commit349d591161e3926da4f0c7c2808d70a31abaf583 (patch)
tree7652ff2af95cce108ae57046bd6b02afbfc40218 /include
parentcbf0c2c3e3046e0bec800bd4628e507fbc5c214d (diff)
downloadexternal_llvm-349d591161e3926da4f0c7c2808d70a31abaf583.zip
external_llvm-349d591161e3926da4f0c7c2808d70a31abaf583.tar.gz
external_llvm-349d591161e3926da4f0c7c2808d70a31abaf583.tar.bz2
Update comment, remove misleading method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@806 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Function.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h
index 1acc9af..4267d32 100644
--- a/include/llvm/Function.h
+++ b/include/llvm/Function.h
@@ -55,19 +55,17 @@ public:
// this is true for external methods, defined as forward "declare"ations
bool isExternal() const { return BasicBlocks.empty(); }
-
- // Get the underlying elements of the Method...
+ // Get the underlying elements of the Method... both the argument list and
+ // basic block list are empty for external methods.
+ //
inline const ArgumentListType &getArgumentList() const{ return ArgumentList; }
inline ArgumentListType &getArgumentList() { return ArgumentList; }
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(); }
+ inline const BasicBlock *getEntryNode() const { return front(); }
+ inline BasicBlock *getEntryNode() { return front(); }
//===--------------------------------------------------------------------===//
// BasicBlock iterator forwarding functions