From: Chris Lattner Date: Tue, 26 Mar 2002 17:49:55 +0000 (+0000) Subject: Change uses of Method to Function X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=0fc0c1d3e13beb5a38a65ba018de75252aa11492;p=oota-llvm.git Change uses of Method to Function Change uses of methodArgument to FunctionArgument git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1988 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Analysis/InstForest.h b/include/llvm/Analysis/InstForest.h index aacbb13fb71..79b7bca8ef3 100644 --- a/include/llvm/Analysis/InstForest.h +++ b/include/llvm/Analysis/InstForest.h @@ -1,4 +1,4 @@ -//===- llvm/Analysis/InstForest.h - Partition Method into forest -*- C++ -*--=// +//===- llvm/Analysis/InstForest.h - Partition Func into forest ---*- C++ -*--=// // // This interface is used to partition a method into a forest of instruction // trees, where the following invariants hold: @@ -163,8 +163,8 @@ class InstForest : public std::vector *> { public: // ctor - Create an instruction forest for the specified method... - InstForest(Method *M) { - for (Method::iterator MI = M->begin(), ME = M->end(); MI != ME; ++MI) { + InstForest(Function *F) { + for (Function::iterator MI = F->begin(), ME = F->end(); MI != ME; ++MI) { BasicBlock *BB = *MI; for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E; ++I) { Instruction *Inst = *I; @@ -240,7 +240,7 @@ InstTreeNode::InstTreeNode(InstForest &IF, Value *V, if (!isa(V)) { assert((isa(V) || isa(V) || - isa(V) || isa(V)) && + isa(V) || isa(V)) && "Unrecognized value type for InstForest Partition!"); if (isa(V)) getTreeData().first.second = ConstNode; diff --git a/include/llvm/Assembly/CachedWriter.h b/include/llvm/Assembly/CachedWriter.h index cccf0377a4c..20b4c05ffbf 100644 --- a/include/llvm/Assembly/CachedWriter.h +++ b/include/llvm/Assembly/CachedWriter.h @@ -43,10 +43,10 @@ public: inline CachedWriter &operator<<(const GlobalVariable *X) { return *this << (const Value*)X; } - inline CachedWriter &operator<<(const Method *X) { + inline CachedWriter &operator<<(const Function *X) { return *this << (const Value*)X; } - inline CachedWriter &operator<<(const MethodArgument *X) { + inline CachedWriter &operator<<(const FunctionArgument *X) { return *this << (const Value*)X; } inline CachedWriter &operator<<(const BasicBlock *X) { diff --git a/include/llvm/Assembly/Writer.h b/include/llvm/Assembly/Writer.h index 5d5a746274e..a148c0b48aa 100644 --- a/include/llvm/Assembly/Writer.h +++ b/include/llvm/Assembly/Writer.h @@ -19,11 +19,6 @@ #include #include "llvm/Type.h" -class Module; -class GlobalVariable; -class Function; -class BasicBlock; -class Instruction; class SlotCalculator; // The only interface defined by this file... convert the internal @@ -100,10 +95,11 @@ inline std::ostream &operator<<(std::ostream &o, const Value *I) { switch (I->getValueType()) { case Value::TypeVal: return o << cast(I); case Value::ConstantVal: WriteToAssembly(cast(I) , o); break; - case Value::MethodArgumentVal: return o << I->getType() << " "<< I->getName(); + case Value::FunctionArgumentVal: + return o << I->getType() << " " << I->getName(); case Value::InstructionVal:WriteToAssembly(cast(I) , o); break; case Value::BasicBlockVal: WriteToAssembly(cast(I) , o); break; - case Value::MethodVal: WriteToAssembly(cast(I) , o); break; + case Value::FunctionVal: WriteToAssembly(cast(I) , o); break; case Value::GlobalVariableVal: WriteToAssembly(cast(I), o); break; case Value::ModuleVal: WriteToAssembly(cast(I) , o); break;