diff options
author | Chris Lattner <sabre@nondot.org> | 2002-10-28 18:50:08 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-10-28 18:50:08 +0000 |
commit | fb3a0aed9b4225c653eb20313c4411dbb6c1c8c4 (patch) | |
tree | e1f9557ebf0aced4721e30d1db7d2047726cea98 /lib/CodeGen/InstrSched/SchedPriorities.cpp | |
parent | 601fc7c71c252e7d5748ecb64a1600ab1e333b5d (diff) |
Remove usage of MachineBasicBlock::get
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4341 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/InstrSched/SchedPriorities.cpp')
-rw-r--r-- | lib/CodeGen/InstrSched/SchedPriorities.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/InstrSched/SchedPriorities.cpp b/lib/CodeGen/InstrSched/SchedPriorities.cpp index 57126aaa33..33aae5c7f5 100644 --- a/lib/CodeGen/InstrSched/SchedPriorities.cpp +++ b/lib/CodeGen/InstrSched/SchedPriorities.cpp @@ -12,6 +12,7 @@ #include "SchedPriorities.h" #include "llvm/Analysis/LiveVar/FunctionLiveVarInfo.h" +#include "llvm/CodeGen/MachineBasicBlock.h" #include "llvm/Support/CFG.h" #include "Support/PostOrderIterator.h" using std::cerr; @@ -269,7 +270,7 @@ SchedPriorities::instructionHasLastUse(FunctionLiveVarInfo &LVI, // else check if instruction is a last use and save it in the hash_map bool hasLastUse = false; - const BasicBlock* bb = graphNode->getBB(); + const BasicBlock* bb = graphNode->getMachineBasicBlock().getBasicBlock(); const ValueSet &LVs = LVI.getLiveVarSetBeforeMInst(MI, bb); for (MachineInstr::const_val_op_iterator OI = MI->begin(), OE = MI->end(); |