From 4d669b510c1d609c6b3fe98ac14ae38bd7c011f6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 8 Apr 2002 22:01:15 +0000 Subject: [PATCH] s/method/function git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2177 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bytecode/Writer/WriterInternals.h | 2 +- lib/CodeGen/MachineInstr.cpp | 2 +- lib/CodeGen/RegAlloc/RegClass.cpp | 6 +++--- lib/Target/SparcV9/RegAlloc/RegClass.cpp | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/Bytecode/Writer/WriterInternals.h b/lib/Bytecode/Writer/WriterInternals.h index 62f12db91fe..73884bbdcc4 100644 --- a/lib/Bytecode/Writer/WriterInternals.h +++ b/lib/Bytecode/Writer/WriterInternals.h @@ -27,7 +27,7 @@ public: protected: void outputConstants(bool isMethod); - void processMethod(const Method *M); + void processMethod(const Function *F); void processBasicBlock(const BasicBlock *BB); void processInstruction(const Instruction *I); diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp index 1d6bfb8033f..6a51f978931 100644 --- a/lib/CodeGen/MachineInstr.cpp +++ b/lib/CodeGen/MachineInstr.cpp @@ -167,7 +167,7 @@ std::ostream &operator<<(std::ostream &os, const MachineOperand &mop) case MachineOperand::MO_PCRelativeDisp: { const Value* opVal = mop.getVRegValue(); - bool isLabel = isa(opVal) || isa(opVal); + bool isLabel = isa(opVal) || isa(opVal); os << "%disp(" << (isLabel? "label " : "addr-of-val "); if (opVal->hasName()) os << opVal->getName(); diff --git a/lib/CodeGen/RegAlloc/RegClass.cpp b/lib/CodeGen/RegAlloc/RegClass.cpp index 8ba6a15ad11..a0d43c80b1f 100644 --- a/lib/CodeGen/RegAlloc/RegClass.cpp +++ b/lib/CodeGen/RegAlloc/RegClass.cpp @@ -6,9 +6,9 @@ using std::cerr; // This constructor inits IG. The actual matrix is created by a call to // createInterferenceGraph() above. //---------------------------------------------------------------------------- -RegClass::RegClass(const Method *const M, - const MachineRegClassInfo *const Mrc, - const ReservedColorListType *const RCL) +RegClass::RegClass(const Function *M, + const MachineRegClassInfo *Mrc, + const ReservedColorListType *RCL) : Meth(M), MRC(Mrc), RegClassID( Mrc->getRegClassID() ), IG(this), IGNodeStack(), ReservedColorList(RCL) { if( DEBUG_RA) diff --git a/lib/Target/SparcV9/RegAlloc/RegClass.cpp b/lib/Target/SparcV9/RegAlloc/RegClass.cpp index 8ba6a15ad11..a0d43c80b1f 100644 --- a/lib/Target/SparcV9/RegAlloc/RegClass.cpp +++ b/lib/Target/SparcV9/RegAlloc/RegClass.cpp @@ -6,9 +6,9 @@ using std::cerr; // This constructor inits IG. The actual matrix is created by a call to // createInterferenceGraph() above. //---------------------------------------------------------------------------- -RegClass::RegClass(const Method *const M, - const MachineRegClassInfo *const Mrc, - const ReservedColorListType *const RCL) +RegClass::RegClass(const Function *M, + const MachineRegClassInfo *Mrc, + const ReservedColorListType *RCL) : Meth(M), MRC(Mrc), RegClassID( Mrc->getRegClassID() ), IG(this), IGNodeStack(), ReservedColorList(RCL) { if( DEBUG_RA)