summaryrefslogtreecommitdiff
path: root/lib/VMCore/SlotCalculator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/VMCore/SlotCalculator.cpp')
-rw-r--r--lib/VMCore/SlotCalculator.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/VMCore/SlotCalculator.cpp b/lib/VMCore/SlotCalculator.cpp
index f527b1838f..7b4a6da179 100644
--- a/lib/VMCore/SlotCalculator.cpp
+++ b/lib/VMCore/SlotCalculator.cpp
@@ -174,8 +174,12 @@ void SlotCalculator::incorporateFunction(const Function *F) {
SC_DEBUG("Inserting Instructions:\n");
// Add all of the instructions to the type planes...
- for_each(inst_begin(F), inst_end(F),
- bind_obj(this, &SlotCalculator::getOrCreateSlot));
+ for (Function::const_iterator BB = F->begin(), E = F->end(); BB != E; ++BB)
+ for (BasicBlock::const_iterator I = BB->begin(), E = BB->end(); I!=E; ++I) {
+ getOrCreateSlot(I);
+ //if (const VANextInst *VAN = dyn_cast<VANextInst>(I))
+ // getOrCreateSlot(VAN->getArgType());
+ }
if (!IgnoreNamedNodes) {
SC_DEBUG("Inserting SymbolTable values:\n");