mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
Fixed error in CPPBackend from a contextification API change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79483 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9d8f004266
commit
781c2b8c49
@ -1162,8 +1162,9 @@ namespace {
|
|||||||
<< bbname << ");";
|
<< bbname << ");";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case Instruction::Unreachable:{
|
case Instruction::Unreachable: {
|
||||||
Out << "new UnreachableInst("
|
Out << "new UnreachableInst("
|
||||||
|
<< "getGlobalContext(), "
|
||||||
<< bbname << ");";
|
<< bbname << ");";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -1239,7 +1240,7 @@ namespace {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case Instruction::ICmp: {
|
case Instruction::ICmp: {
|
||||||
Out << "ICmpInst* " << iName << " = new ICmpInst(";
|
Out << "ICmpInst* " << iName << " = new ICmpInst(*" << bbname << ", ";
|
||||||
switch (cast<ICmpInst>(I)->getPredicate()) {
|
switch (cast<ICmpInst>(I)->getPredicate()) {
|
||||||
case ICmpInst::ICMP_EQ: Out << "ICmpInst::ICMP_EQ"; break;
|
case ICmpInst::ICMP_EQ: Out << "ICmpInst::ICMP_EQ"; break;
|
||||||
case ICmpInst::ICMP_NE: Out << "ICmpInst::ICMP_NE"; break;
|
case ICmpInst::ICMP_NE: Out << "ICmpInst::ICMP_NE"; break;
|
||||||
@ -1255,7 +1256,7 @@ namespace {
|
|||||||
}
|
}
|
||||||
Out << ", " << opNames[0] << ", " << opNames[1] << ", \"";
|
Out << ", " << opNames[0] << ", " << opNames[1] << ", \"";
|
||||||
printEscapedString(I->getName());
|
printEscapedString(I->getName());
|
||||||
Out << "\", " << bbname << ");";
|
Out << "\");";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case Instruction::Malloc: {
|
case Instruction::Malloc: {
|
||||||
|
Loading…
Reference in New Issue
Block a user