projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Renamed Type::isIntegral() to Type::isInteger()
[oota-llvm.git]
/
lib
/
VMCore
/
AsmWriter.cpp
diff --git
a/lib/VMCore/AsmWriter.cpp
b/lib/VMCore/AsmWriter.cpp
index 465890858ff86538f02aed315911c60a9b827f77..d8a1394497b7c4b4f30b75719e990de3b453d510 100644
(file)
--- a/
lib/VMCore/AsmWriter.cpp
+++ b/
lib/VMCore/AsmWriter.cpp
@@
-337,7
+337,7
@@
static void WriteConstantInt(ostream &Out, const Constant *CV, bool PrintName,
Out << CE->getOpcodeName();
bool isGEP = CE->getOpcode() == Instruction::GetElementPtr;
Out << CE->getOpcodeName();
bool isGEP = CE->getOpcode() == Instruction::GetElementPtr;
- Out <<
(isGEP ? " (" : " ")
;
+ Out <<
" ("
;
for (User::const_op_iterator OI=CE->op_begin(); OI != CE->op_end(); ++OI) {
printTypeInt(Out, (*OI)->getType(), TypeTable);
for (User::const_op_iterator OI=CE->op_begin(); OI != CE->op_end(); ++OI) {
printTypeInt(Out, (*OI)->getType(), TypeTable);
@@
-346,12
+346,11
@@
static void WriteConstantInt(ostream &Out, const Constant *CV, bool PrintName,
Out << ", ";
}
Out << ", ";
}
- if (isGEP)
- Out << ")";
- else if (CE->getOpcode() == Instruction::Cast) {
+ if (CE->getOpcode() == Instruction::Cast) {
Out << " to ";
printTypeInt(Out, CE->getType(), TypeTable);
}
Out << " to ";
printTypeInt(Out, CE->getType(), TypeTable);
}
+ Out << ")";
} else {
Out << "<placeholder or erroneous Constant>";
} else {
Out << "<placeholder or erroneous Constant>";