StoreInst does not produce any result thus it's useless to create new
authorAnton Korobeynikov <asl@math.spbu.ru>
Sat, 8 Nov 2008 12:58:07 +0000 (12:58 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Sat, 8 Nov 2008 12:58:07 +0000 (12:58 +0000)
variable for it. This greatly reduces amount of unused variables in
llvm2cpp-generated code

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58905 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/CppBackend/CPPBackend.cpp

index 95c4ad7dc50017cd7f04f6176fd621a9f827693c..351c3394f4c8dc0f2e3cf8b86f7449142852fcff 100644 (file)
@@ -1269,7 +1269,7 @@ namespace {
     }
     case Instruction::Store: {
       const StoreInst* store = cast<StoreInst>(I);
-      Out << "StoreInst* " << iName << " = new StoreInst("
+      Out << " = new StoreInst("
           << opNames[0] << ", "
           << opNames[1] << ", "
           << (store->isVolatile() ? "true" : "false")