Update comment, remove misleading method
authorChris Lattner <sabre@nondot.org>
Sun, 14 Oct 2001 23:26:24 +0000 (23:26 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 14 Oct 2001 23:26:24 +0000 (23:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@806 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Function.h

index 1acc9af935db5f9a8e145f1088b776cf63040256..4267d32c1f4c0e5dd6be22949153ce7925132edd 100644 (file)
@@ -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