diff options
author | Chris Lattner <sabre@nondot.org> | 2002-03-26 18:01:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-03-26 18:01:55 +0000 |
commit | 57698e2c0bf6853a66f06a5ec5014c53001de006 (patch) | |
tree | cb10a0c04ac9b03816baad3862b1f9ff2bacb738 /llvm/lib/CodeGen | |
parent | 5d088b00bf14601f3f44573e9665a9668ea74603 (diff) | |
download | bcm5719-llvm-57698e2c0bf6853a66f06a5ec5014c53001de006.tar.gz bcm5719-llvm-57698e2c0bf6853a66f06a5ec5014c53001de006.zip |
Change references from Method to Function
change references from MethodARgument to FunctionArgument
llvm-svn: 1991
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/InstrSelection/InstrForest.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/InstrSelection/InstrForest.cpp b/llvm/lib/CodeGen/InstrSelection/InstrForest.cpp index 660f3112d72..8fa8638a025 100644 --- a/llvm/lib/CodeGen/InstrSelection/InstrForest.cpp +++ b/llvm/lib/CodeGen/InstrSelection/InstrForest.cpp @@ -24,7 +24,7 @@ #include "llvm/CodeGen/InstrForest.h" #include "llvm/CodeGen/MachineCodeForInstruction.h" -#include "llvm/Method.h" +#include "llvm/Function.h" #include "llvm/iTerminators.h" #include "llvm/iMemory.h" #include "llvm/iPHINode.h" @@ -188,10 +188,10 @@ LabelNode::dumpNode(int indent) const // A forest of instruction trees, usually for a single method. //------------------------------------------------------------------------ -InstrForest::InstrForest(Method *M) +InstrForest::InstrForest(Function *F) { - for (Method::iterator MI = M->begin(), ME = M->end(); MI != ME; ++MI) { - BasicBlock *BB = *MI; + for (Function::iterator FI = F->begin(), FE = F->end(); FI != FE; ++FI) { + BasicBlock *BB = *FI; for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E; ++I) buildTreeForInstruction(*I); } @@ -302,11 +302,11 @@ InstrForest::buildTreeForInstruction(Instruction *instr) // Check latter condition here just to simplify the next IF. bool includeAddressOperand = - (isa<BasicBlock>(operand) || isa<Method>(operand)) + (isa<BasicBlock>(operand) || isa<Function>(operand)) && !instr->isTerminator(); if (includeAddressOperand || isa<Instruction>(operand) || - isa<Constant>(operand) || isa<MethodArgument>(operand) || + isa<Constant>(operand) || isa<FunctionArgument>(operand) || isa<GlobalVariable>(operand)) { // This operand is a data value |