projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
760a572
)
StoreInst does not produce any result thus it's useless to create new
author
Anton Korobeynikov
<asl@math.spbu.ru>
Sat, 8 Nov 2008 12:58:07 +0000
(12:58 +0000)
committer
Anton 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
patch
|
blob
|
history
diff --git
a/lib/Target/CppBackend/CPPBackend.cpp
b/lib/Target/CppBackend/CPPBackend.cpp
index 95c4ad7dc50017cd7f04f6176fd621a9f827693c..351c3394f4c8dc0f2e3cf8b86f7449142852fcff 100644
(file)
--- 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")