mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +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 << ");";
|
||||
break;
|
||||
}
|
||||
case Instruction::Unreachable:{
|
||||
case Instruction::Unreachable: {
|
||||
Out << "new UnreachableInst("
|
||||
<< "getGlobalContext(), "
|
||||
<< bbname << ");";
|
||||
break;
|
||||
}
|
||||
@ -1239,7 +1240,7 @@ namespace {
|
||||
break;
|
||||
}
|
||||
case Instruction::ICmp: {
|
||||
Out << "ICmpInst* " << iName << " = new ICmpInst(";
|
||||
Out << "ICmpInst* " << iName << " = new ICmpInst(*" << bbname << ", ";
|
||||
switch (cast<ICmpInst>(I)->getPredicate()) {
|
||||
case ICmpInst::ICMP_EQ: Out << "ICmpInst::ICMP_EQ"; break;
|
||||
case ICmpInst::ICMP_NE: Out << "ICmpInst::ICMP_NE"; break;
|
||||
@ -1255,7 +1256,7 @@ namespace {
|
||||
}
|
||||
Out << ", " << opNames[0] << ", " << opNames[1] << ", \"";
|
||||
printEscapedString(I->getName());
|
||||
Out << "\", " << bbname << ");";
|
||||
Out << "\");";
|
||||
break;
|
||||
}
|
||||
case Instruction::Malloc: {
|
||||
|
Loading…
Reference in New Issue
Block a user