[llvm-commits] [llvm] r50062 - /llvm/trunk/tools/llvm2cpp/CppWriter.cpp
Gabor Greif
ggreif at gmail.com
Mon Apr 21 14:31:55 PDT 2008
Author: ggreif
Date: Mon Apr 21 16:31:55 2008
New Revision: 50062
URL: http://llvm.org/viewvc/llvm-project?rev=50062&view=rev
Log:
fix some residual old API that fell thru the cracks of the conversion script, closes http://llvm.org/bugs/show_bug.cgi?id=2246
Modified:
llvm/trunk/tools/llvm2cpp/CppWriter.cpp
Modified: llvm/trunk/tools/llvm2cpp/CppWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm2cpp/CppWriter.cpp?rev=50062&r1=50061&r2=50062&view=diff
==============================================================================
--- llvm/trunk/tools/llvm2cpp/CppWriter.cpp (original)
+++ llvm/trunk/tools/llvm2cpp/CppWriter.cpp Mon Apr 21 16:31:55 2008
@@ -1315,7 +1315,7 @@
case Instruction::PHI: {
const PHINode* phi = cast<PHINode>(I);
- Out << "PHINode* " << iName << " = new PHINode("
+ Out << "PHINode* " << iName << " = PHINode::Create("
<< getCppName(phi->getType()) << ", \"";
printEscapedString(phi->getName());
Out << "\", " << bbname << ");";
More information about the llvm-commits
mailing list