aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-02-11 00:25:25 +0000
committerDan Gohman <gohman@apple.com>2009-02-11 00:25:25 +0000
commit7dfa07f794a5dd4479e80896ef626bbe69455908 (patch)
tree0be7cce958c12268b2acba2bf1f9dc3a5e9dda6a /lib/VMCore
parent18e9a6b3af36ced22cb430b427d4c0ea9f3b8f81 (diff)
downloadexternal_llvm-7dfa07f794a5dd4479e80896ef626bbe69455908.zip
external_llvm-7dfa07f794a5dd4479e80896ef626bbe69455908.tar.gz
external_llvm-7dfa07f794a5dd4479e80896ef626bbe69455908.tar.bz2
Don't print extra spaces in vector and array constants. This makes
them visually more consistent with vector and array types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64267 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/AsmWriter.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp
index 0322d66..6718da4 100644
--- a/lib/VMCore/AsmWriter.cpp
+++ b/lib/VMCore/AsmWriter.cpp
@@ -727,7 +727,6 @@ static void WriteConstantInt(raw_ostream &Out, const Constant *CV,
} else { // Cannot output in string format...
Out << '[';
if (CA->getNumOperands()) {
- Out << ' ';
printTypeInt(Out, ETy, TypeTable);
Out << ' ';
WriteAsOperandInternal(Out, CA->getOperand(0),
@@ -738,7 +737,6 @@ static void WriteConstantInt(raw_ostream &Out, const Constant *CV,
Out << ' ';
WriteAsOperandInternal(Out, CA->getOperand(i), TypeTable, Machine);
}
- Out << ' ';
}
Out << ']';
}
@@ -777,7 +775,7 @@ static void WriteConstantInt(raw_ostream &Out, const Constant *CV,
const Type *ETy = CP->getType()->getElementType();
assert(CP->getNumOperands() > 0 &&
"Number of operands for a PackedConst must be > 0");
- Out << "< ";
+ Out << '<';
printTypeInt(Out, ETy, TypeTable);
Out << ' ';
WriteAsOperandInternal(Out, CP->getOperand(0), TypeTable, Machine);
@@ -787,7 +785,7 @@ static void WriteConstantInt(raw_ostream &Out, const Constant *CV,
Out << ' ';
WriteAsOperandInternal(Out, CP->getOperand(i), TypeTable, Machine);
}
- Out << " >";
+ Out << '>';
return;
}