Fix problem which effected linking apache

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9335 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2003-10-21 17:39:59 +00:00
parent 08d702b61d
commit 389dbfbd8b
3 changed files with 13 additions and 5 deletions
+6 -2
View File
@@ -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");