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 | 09991ada2d0dfec7ea98394bc434861203e6c931 (patch) | |
tree | a85815de741286d6b33dc46cb7d0bea1d17f7639 /llvm | |
parent | 0d9ee2eb2e771243cafe0c015551c322ef5d615c (diff) | |
download | bcm5719-llvm-09991ada2d0dfec7ea98394bc434861203e6c931.tar.gz bcm5719-llvm-09991ada2d0dfec7ea98394bc434861203e6c931.zip |
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
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/Target/CppBackend/CPPBackend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<StoreInst>(I); - Out << "StoreInst* " << iName << " = new StoreInst(" + Out << " = new StoreInst(" << opNames[0] << ", " << opNames[1] << ", " << (store->isVolatile() ? "true" : "false") |