aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Function.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-03-26 17:48:08 +0000
committerChris Lattner <sabre@nondot.org>2002-03-26 17:48:08 +0000
commit19b0411c95335018f0d1c6b6f029983fc2d79761 (patch)
treeae808a443364ea3d98ae067a7bfb6c84d1a0330d /include/llvm/Function.h
parent7797946c5ee036a7edf932c156e496742a289221 (diff)
downloadexternal_llvm-19b0411c95335018f0d1c6b6f029983fc2d79761.zip
external_llvm-19b0411c95335018f0d1c6b6f029983fc2d79761.tar.gz
external_llvm-19b0411c95335018f0d1c6b6f029983fc2d79761.tar.bz2
Transform uses of Method into uses of Function.
Rename MethodArgument to FunctionArgument Fix some _really_ out of date comments git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1986 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Function.h')
-rw-r--r--include/llvm/Function.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h
index 5be1dd4..d7e304d 100644
--- a/include/llvm/Function.h
+++ b/include/llvm/Function.h
@@ -15,16 +15,12 @@
#include "llvm/GlobalValue.h"
#include "llvm/ValueHolder.h"
-class Instruction;
-class BasicBlock;
-class MethodArgument;
class MethodType;
-class Module;
class Function : public GlobalValue, public SymTabValue {
public:
- typedef ValueHolder<MethodArgument, Method, Method> ArgumentListType;
- typedef ValueHolder<BasicBlock , Method, Method> BasicBlocksType;
+ typedef ValueHolder<FunctionArgument, Function, Function> ArgumentListType;
+ typedef ValueHolder<BasicBlock , Function, Function> BasicBlocksType;
// BasicBlock iterators...
typedef BasicBlocksType::iterator iterator;
@@ -55,7 +51,7 @@ 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... both the argument list and
+ // Get the underlying elements of the Function... both the argument list and
// basic block list are empty for external methods.
//
inline const ArgumentListType &getArgumentList() const{ return ArgumentList; }
@@ -91,7 +87,7 @@ public:
// Methods for support type inquiry through isa, cast, and dyn_cast:
static inline bool classof(const Function *) { return true; }
static inline bool classof(const Value *V) {
- return V->getValueType() == Value::MethodVal;
+ return V->getValueType() == Value::FunctionVal;
}
// dropAllReferences() - This function causes all the subinstructions to "let