diff options
author | Chris Lattner <sabre@nondot.org> | 2002-03-23 22:51:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-03-23 22:51:58 +0000 |
commit | e7506a366e8bd56c97d10beb68e4db953aebaeca (patch) | |
tree | 2ed9896ec8647934d3c26cb740dc4ed16d9ae57b /include/llvm/Assembly | |
parent | bcd8e0313853473f72a138e51072f9bd545fadd2 (diff) | |
download | llvm-e7506a366e8bd56c97d10beb68e4db953aebaeca.tar.gz llvm-e7506a366e8bd56c97d10beb68e4db953aebaeca.tar.bz2 llvm-e7506a366e8bd56c97d10beb68e4db953aebaeca.tar.xz |
Rename Method to Function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1957 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Assembly')
-rw-r--r-- | include/llvm/Assembly/Writer.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/llvm/Assembly/Writer.h b/include/llvm/Assembly/Writer.h index 6ef33ad1b6..5d5a746274 100644 --- a/include/llvm/Assembly/Writer.h +++ b/include/llvm/Assembly/Writer.h @@ -21,7 +21,7 @@ class Module; class GlobalVariable; -class Method; +class Function; class BasicBlock; class Instruction; class SlotCalculator; @@ -32,7 +32,7 @@ class SlotCalculator; // void WriteToAssembly(const Module *Module, std::ostream &o); void WriteToAssembly(const GlobalVariable *G, std::ostream &o); -void WriteToAssembly(const Method *Method, std::ostream &o); +void WriteToAssembly(const Function *F , std::ostream &o); void WriteToAssembly(const BasicBlock *BB, std::ostream &o); void WriteToAssembly(const Instruction *In, std::ostream &o); void WriteToAssembly(const Constant *V, std::ostream &o); @@ -58,7 +58,7 @@ std::ostream &WriteAsOperand(std::ostream &, const Value *, bool PrintTy = true, // suffix. // void WriteToVCG(const Module *Module, const std::string &Filename); -void WriteToVCG(const Method *Method, const std::string &Filename); +void WriteToVCG(const Function *Func, const std::string &Filename); @@ -74,8 +74,8 @@ inline std::ostream &operator<<(std::ostream &o, const GlobalVariable *G) { WriteToAssembly(G, o); return o; } -inline std::ostream &operator<<(std::ostream &o, const Method *M) { - WriteToAssembly(M, o); return o; +inline std::ostream &operator<<(std::ostream &o, const Function *F) { + WriteToAssembly(F, o); return o; } inline std::ostream &operator<<(std::ostream &o, const BasicBlock *B) { @@ -103,7 +103,7 @@ inline std::ostream &operator<<(std::ostream &o, const Value *I) { case Value::MethodArgumentVal: return o << I->getType() << " "<< I->getName(); case Value::InstructionVal:WriteToAssembly(cast<Instruction>(I) , o); break; case Value::BasicBlockVal: WriteToAssembly(cast<BasicBlock>(I) , o); break; - case Value::MethodVal: WriteToAssembly(cast<Method>(I) , o); break; + case Value::MethodVal: WriteToAssembly(cast<Function>(I) , o); break; case Value::GlobalVariableVal: WriteToAssembly(cast<GlobalVariable>(I), o); break; case Value::ModuleVal: WriteToAssembly(cast<Module>(I) , o); break; |