summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2009-08-19 22:38:37 +0000
committerReid Kleckner <reid@kleckner.net>2009-08-19 22:38:37 +0000
commitd72b091840d12143f4a81cb7637911b7271cbf9e (patch)
tree58f8f5b83a134ef370ca176f60fe3754b7a748c5 /llvm/lib
parentca66226c317a63e1e3af4a49ca60d0d3fb027e6b (diff)
downloadbcm5719-llvm-d72b091840d12143f4a81cb7637911b7271cbf9e.tar.gz
bcm5719-llvm-d72b091840d12143f4a81cb7637911b7271cbf9e.zip
Fixed error in CPPBackend from a contextification API change.
llvm-svn: 79483
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/CppBackend/CPPBackend.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Target/CppBackend/CPPBackend.cpp b/llvm/lib/Target/CppBackend/CPPBackend.cpp
index 2f5733dae3b..3d7eefa2d07 100644
--- a/llvm/lib/Target/CppBackend/CPPBackend.cpp
+++ b/llvm/lib/Target/CppBackend/CPPBackend.cpp
@@ -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: {
OpenPOWER on IntegriCloud