summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-08 22:01:15 +0000
committerChris Lattner <sabre@nondot.org>2002-04-08 22:01:15 +0000
commit95f65b6f8455ba89f606dc83a283ad306184c602 (patch)
treef60733d97f77407ceb66c0bf6904389ba9bb8d48 /llvm/lib
parentd620de69a164405f11cbfcbc54b54fd0f7f2e341 (diff)
downloadbcm5719-llvm-95f65b6f8455ba89f606dc83a283ad306184c602.tar.gz
bcm5719-llvm-95f65b6f8455ba89f606dc83a283ad306184c602.zip
s/method/function
llvm-svn: 2177
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Bytecode/Writer/WriterInternals.h2
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp2
-rw-r--r--llvm/lib/CodeGen/RegAlloc/RegClass.cpp6
3 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Bytecode/Writer/WriterInternals.h b/llvm/lib/Bytecode/Writer/WriterInternals.h
index 62f12db91fe..73884bbdcc4 100644
--- a/llvm/lib/Bytecode/Writer/WriterInternals.h
+++ b/llvm/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/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index 1d6bfb8033f..6a51f978931 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/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<Method>(opVal) || isa<BasicBlock>(opVal);
+ bool isLabel = isa<Function>(opVal) || isa<BasicBlock>(opVal);
os << "%disp(" << (isLabel? "label " : "addr-of-val ");
if (opVal->hasName())
os << opVal->getName();
diff --git a/llvm/lib/CodeGen/RegAlloc/RegClass.cpp b/llvm/lib/CodeGen/RegAlloc/RegClass.cpp
index 8ba6a15ad11..a0d43c80b1f 100644
--- a/llvm/lib/CodeGen/RegAlloc/RegClass.cpp
+++ b/llvm/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)
OpenPOWER on IntegriCloud