summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-10-28 18:50:08 +0000
committerChris Lattner <sabre@nondot.org>2002-10-28 18:50:08 +0000
commit967c38f4c5c658ca1cac71e4651accac1d9eef54 (patch)
treeac67e21d64c43653bf6c17299e4c1e704bcdb68f /llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp
parenta7ee81d6a5863f11d678aae7572d154edc4975ca (diff)
downloadbcm5719-llvm-967c38f4c5c658ca1cac71e4651accac1d9eef54.tar.gz
bcm5719-llvm-967c38f4c5c658ca1cac71e4651accac1d9eef54.zip
Remove usage of MachineBasicBlock::get
llvm-svn: 4341
Diffstat (limited to 'llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp')
-rw-r--r--llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp b/llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp
index 57126aaa334..33aae5c7f52 100644
--- a/llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp
+++ b/llvm/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();
OpenPOWER on IntegriCloud