mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Changes to fix up the inst_iterator to pass to boost iterator checks. This
patch was graciously contributed by Vladimir Prus. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13185 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -955,19 +955,19 @@ void CWriter::printFunction(Function &F) {
|
||||
|
||||
// print local variable information for the function
|
||||
for (inst_iterator I = inst_begin(&F), E = inst_end(&F); I != E; ++I)
|
||||
if (const AllocaInst *AI = isDirectAlloca(*I)) {
|
||||
if (const AllocaInst *AI = isDirectAlloca(&*I)) {
|
||||
Out << " ";
|
||||
printType(Out, AI->getAllocatedType(), Mang->getValueName(AI));
|
||||
Out << "; /* Address exposed local */\n";
|
||||
} else if ((*I)->getType() != Type::VoidTy && !isInlinableInst(**I)) {
|
||||
} else if (I->getType() != Type::VoidTy && !isInlinableInst(*I)) {
|
||||
Out << " ";
|
||||
printType(Out, (*I)->getType(), Mang->getValueName(*I));
|
||||
printType(Out, I->getType(), Mang->getValueName(&*I));
|
||||
Out << ";\n";
|
||||
|
||||
if (isa<PHINode>(*I)) { // Print out PHI node temporaries as well...
|
||||
Out << " ";
|
||||
printType(Out, (*I)->getType(),
|
||||
Mang->getValueName(*I)+"__PHI_TEMPORARY");
|
||||
printType(Out, I->getType(),
|
||||
Mang->getValueName(&*I)+"__PHI_TEMPORARY");
|
||||
Out << ";\n";
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user