[llvm-commits] [llvm] r79483 - /llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp
Reid Kleckner
reid at kleckner.net
Wed Aug 19 15:38:37 PDT 2009
Author: rnk
Date: Wed Aug 19 17:38:37 2009
New Revision: 79483
URL: http://llvm.org/viewvc/llvm-project?rev=79483&view=rev
Log:
Fixed error in CPPBackend from a contextification API change.
Modified:
llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp
Modified: llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp?rev=79483&r1=79482&r2=79483&view=diff
==============================================================================
--- llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp (original)
+++ llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp Wed Aug 19 17:38:37 2009
@@ -1162,8 +1162,9 @@
<< bbname << ");";
break;
}
- case Instruction::Unreachable:{
+ case Instruction::Unreachable: {
Out << "new UnreachableInst("
+ << "getGlobalContext(), "
<< bbname << ");";
break;
}
@@ -1239,7 +1240,7 @@
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 @@
}
Out << ", " << opNames[0] << ", " << opNames[1] << ", \"";
printEscapedString(I->getName());
- Out << "\", " << bbname << ");";
+ Out << "\");";
break;
}
case Instruction::Malloc: {
More information about the llvm-commits
mailing list