From 09991ada2d0dfec7ea98394bc434861203e6c931 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Sat, 8 Nov 2008 12:58:07 +0000 Subject: StoreInst does not produce any result thus it's useless to create new variable for it. This greatly reduces amount of unused variables in llvm2cpp-generated code llvm-svn: 58905 --- llvm/lib/Target/CppBackend/CPPBackend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Target/CppBackend') diff --git a/llvm/lib/Target/CppBackend/CPPBackend.cpp b/llvm/lib/Target/CppBackend/CPPBackend.cpp index 95c4ad7dc50..351c3394f4c 100644 --- a/llvm/lib/Target/CppBackend/CPPBackend.cpp +++ b/llvm/lib/Target/CppBackend/CPPBackend.cpp @@ -1269,7 +1269,7 @@ namespace { } case Instruction::Store: { const StoreInst* store = cast(I); - Out << "StoreInst* " << iName << " = new StoreInst(" + Out << " = new StoreInst(" << opNames[0] << ", " << opNames[1] << ", " << (store->isVolatile() ? "true" : "false") -- cgit v1.2.3