aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-09 19:59:31 +0000
committerChris Lattner <sabre@nondot.org>2002-04-09 19:59:31 +0000
commite06e9146eeb48e3ebf0f30bdaf7d86a6e03946ad (patch)
tree88c367a169fcecba357d0eef998e9b7e7cabd4b0 /include
parent73e214244f2403b5ba0ef81b8839600f3c8ffebc (diff)
Move FunctionArgument out of iOther.h into Argument.h and rename class to
be 'Argument' instead of FunctionArgument. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2217 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/DataStructure.h6
-rw-r--r--include/llvm/Analysis/DataStructure/DataStructure.h6
-rw-r--r--include/llvm/Analysis/InstForest.h2
-rw-r--r--include/llvm/Assembly/CachedWriter.h4
-rw-r--r--include/llvm/Function.h4
-rw-r--r--include/llvm/Value.h12
6 files changed, 17 insertions, 17 deletions
diff --git a/include/llvm/Analysis/DataStructure.h b/include/llvm/Analysis/DataStructure.h
index 335477fb6c..bf787ea5ab 100644
--- a/include/llvm/Analysis/DataStructure.h
+++ b/include/llvm/Analysis/DataStructure.h
@@ -13,7 +13,7 @@
class Type;
class CallInst;
class AllocationInst;
-class FunctionArgument;
+class Argument;
class DSNode;
class FunctionRepBuilder;
class GlobalValue;
@@ -312,9 +312,9 @@ private:
// ArgDSNode - Represent an incoming argument to the current function...
//
class ArgDSNode : public DSNode {
- FunctionArgument *FuncArg;
+ Argument *FuncArg;
public:
- ArgDSNode(FunctionArgument *MA);
+ ArgDSNode(Argument *FA);
virtual std::string getCaption() const;
// isEquivalentTo - Return true if the nodes should be merged...
diff --git a/include/llvm/Analysis/DataStructure/DataStructure.h b/include/llvm/Analysis/DataStructure/DataStructure.h
index 335477fb6c..bf787ea5ab 100644
--- a/include/llvm/Analysis/DataStructure/DataStructure.h
+++ b/include/llvm/Analysis/DataStructure/DataStructure.h
@@ -13,7 +13,7 @@
class Type;
class CallInst;
class AllocationInst;
-class FunctionArgument;
+class Argument;
class DSNode;
class FunctionRepBuilder;
class GlobalValue;
@@ -312,9 +312,9 @@ private:
// ArgDSNode - Represent an incoming argument to the current function...
//
class ArgDSNode : public DSNode {
- FunctionArgument *FuncArg;
+ Argument *FuncArg;
public:
- ArgDSNode(FunctionArgument *MA);
+ ArgDSNode(Argument *FA);
virtual std::string getCaption() const;
// isEquivalentTo - Return true if the nodes should be merged...
diff --git a/include/llvm/Analysis/InstForest.h b/include/llvm/Analysis/InstForest.h
index 79b7bca8ef..68f71420a8 100644
--- a/include/llvm/Analysis/InstForest.h
+++ b/include/llvm/Analysis/InstForest.h
@@ -240,7 +240,7 @@ InstTreeNode<Payload>::InstTreeNode(InstForest<Payload> &IF, Value *V,
if (!isa<Instruction>(V)) {
assert((isa<Constant>(V) || isa<BasicBlock>(V) ||
- isa<FunctionArgument>(V) || isa<GlobalValue>(V)) &&
+ isa<Argument>(V) || isa<GlobalValue>(V)) &&
"Unrecognized value type for InstForest Partition!");
if (isa<Constant>(V))
getTreeData().first.second = ConstNode;
diff --git a/include/llvm/Assembly/CachedWriter.h b/include/llvm/Assembly/CachedWriter.h
index 2d4741b7f0..f78df1a591 100644
--- a/include/llvm/Assembly/CachedWriter.h
+++ b/include/llvm/Assembly/CachedWriter.h
@@ -15,7 +15,7 @@
class GlobalVariable;
class Function;
-class FunctionArgument;
+class Argument;
class BasicBlock;
class Instruction;
class Constant;
@@ -55,7 +55,7 @@ public:
inline CachedWriter &operator<<(const Function *X) {
return *this << (const Value*)X;
}
- inline CachedWriter &operator<<(const FunctionArgument *X) {
+ inline CachedWriter &operator<<(const Argument *X) {
return *this << (const Value*)X;
}
inline CachedWriter &operator<<(const BasicBlock *X) {
diff --git a/include/llvm/Function.h b/include/llvm/Function.h
index 322cb8af7b..91df9a70cf 100644
--- a/include/llvm/Function.h
+++ b/include/llvm/Function.h
@@ -19,8 +19,8 @@ class FunctionType;
class Function : public GlobalValue, public SymTabValue {
public:
- typedef ValueHolder<FunctionArgument, Function, Function> ArgumentListType;
- typedef ValueHolder<BasicBlock , Function, Function> BasicBlocksType;
+ typedef ValueHolder<Argument , Function, Function> ArgumentListType;
+ typedef ValueHolder<BasicBlock, Function, Function> BasicBlocksType;
// BasicBlock iterators...
typedef BasicBlocksType::iterator iterator;
diff --git a/include/llvm/Value.h b/include/llvm/Value.h
index 7ffcf1b750..b30b4cc125 100644
--- a/include/llvm/Value.h
+++ b/include/llvm/Value.h
@@ -19,7 +19,7 @@
class User;
class Type;
class Constant;
-class FunctionArgument;
+class Argument;
class Instruction;
class BasicBlock;
class GlobalValue;
@@ -40,7 +40,7 @@ public:
enum ValueTy {
TypeVal, // This is an instance of Type
ConstantVal, // This is an instance of Constant
- FunctionArgumentVal, // This is an instance of FunctionArgument
+ ArgumentVal, // This is an instance of Argument
InstructionVal, // This is an instance of Instruction
BasicBlockVal, // This is an instance of BasicBlock
FunctionVal, // This is an instance of Function
@@ -202,11 +202,11 @@ template <> inline bool isa<Constant, const Value*>(const Value *Val) {
template <> inline bool isa<Constant, Value*>(Value *Val) {
return Val->getValueType() == Value::ConstantVal;
}
-template <> inline bool isa<FunctionArgument, const Value*>(const Value *Val) {
- return Val->getValueType() == Value::FunctionArgumentVal;
+template <> inline bool isa<Argument, const Value*>(const Value *Val) {
+ return Val->getValueType() == Value::ArgumentVal;
}
-template <> inline bool isa<FunctionArgument, Value*>(Value *Val) {
- return Val->getValueType() == Value::FunctionArgumentVal;
+template <> inline bool isa<Argument, Value*>(Value *Val) {
+ return Val->getValueType() == Value::ArgumentVal;
}
template <> inline bool isa<Instruction, const Value*>(const Value *Val) {
return Val->getValueType() == Value::InstructionVal;