diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-11-08 12:58:07 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-11-08 12:58:07 +0000 |
commit | e0f4af3b49f8bcf5aed470e3f023133510e1da12 (patch) | |
tree | ba5d9f1673ae1fa11a051aae0fe0b183bae97624 /lib/Target/CppBackend/CPPBackend.cpp | |
parent | 760a5724c671467dd407184c7a88ae145c0f938b (diff) |
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58905 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CppBackend/CPPBackend.cpp')
-rw-r--r-- | lib/Target/CppBackend/CPPBackend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp index 95c4ad7dc5..351c3394f4 100644 --- a/lib/Target/CppBackend/CPPBackend.cpp +++ b/lib/Target/CppBackend/CPPBackend.cpp @@ -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") |