diff options
author | Gabor Greif <ggreif@gmail.com> | 2008-04-21 21:31:55 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2008-04-21 21:31:55 +0000 |
commit | 5aa28d954925a2745562892ffb359ce3a2fa160d (patch) | |
tree | 4b9bb4e35f2aa6b68978ba75d2b962e8523cc414 /tools | |
parent | 66d5eaf43e9e37ebe38f08d2974b325fb912a393 (diff) | |
download | external_llvm-5aa28d954925a2745562892ffb359ce3a2fa160d.zip external_llvm-5aa28d954925a2745562892ffb359ce3a2fa160d.tar.gz external_llvm-5aa28d954925a2745562892ffb359ce3a2fa160d.tar.bz2 |
fix some residual old API that fell thru the cracks of the conversion script, closes http://llvm.org/bugs/show_bug.cgi?id=2246
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50062 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llvm2cpp/CppWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm2cpp/CppWriter.cpp b/tools/llvm2cpp/CppWriter.cpp index f4ed2a4..2c5418a 100644 --- a/tools/llvm2cpp/CppWriter.cpp +++ b/tools/llvm2cpp/CppWriter.cpp @@ -1315,7 +1315,7 @@ CppWriter::printInstruction(const Instruction *I, const std::string& bbname) { 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 << ");"; |