aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/AsmWriter.cpp
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-02-26 10:16:05 +0000
committerJim Laskey <jlaskey@mac.com>2006-02-26 10:16:05 +0000
commitc13a72c3293b360d9de025b117be847dfbb5569f (patch)
tree805f309f13357b63cbe566e952ac3809d9c03364 /lib/VMCore/AsmWriter.cpp
parent140a4c486829e1ade130ca1ce5ca5c934a79523e (diff)
downloadexternal_llvm-c13a72c3293b360d9de025b117be847dfbb5569f.zip
external_llvm-c13a72c3293b360d9de025b117be847dfbb5569f.tar.gz
external_llvm-c13a72c3293b360d9de025b117be847dfbb5569f.tar.bz2
Reverting. Didn't realize some developers were embedding constants in their
target assembler code gen. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26383 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/AsmWriter.cpp')
-rw-r--r--lib/VMCore/AsmWriter.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp
index 80085d0..cf9af3f 100644
--- a/lib/VMCore/AsmWriter.cpp
+++ b/lib/VMCore/AsmWriter.cpp
@@ -419,7 +419,6 @@ static void WriteConstantInt(std::ostream &Out, const Constant *CV,
bool PrintName,
std::map<const Type *, std::string> &TypeTable,
SlotMachine *Machine) {
- static std::string Indent = "\n";
if (const ConstantBool *CB = dyn_cast<ConstantBool>(CV)) {
Out << (CB == ConstantBool::True ? "true" : "false");
} else if (const ConstantSInt *CI = dyn_cast<ConstantSInt>(CV)) {
@@ -485,12 +484,7 @@ static void WriteConstantInt(std::ostream &Out, const Constant *CV,
Out << '{';
unsigned N = CS->getNumOperands();
if (N) {
- if (N > 2) {
- Indent += " ";
- Out << Indent;
- } else {
- Out << ' ';
- }
+ Out << ' ';
printTypeInt(Out, CS->getOperand(0)->getType(), TypeTable);
WriteAsOperandInternal(Out, CS->getOperand(0),
@@ -498,13 +492,11 @@ static void WriteConstantInt(std::ostream &Out, const Constant *CV,
for (unsigned i = 1; i < N; i++) {
Out << ", ";
- if (N > 2) Out << Indent;
printTypeInt(Out, CS->getOperand(i)->getType(), TypeTable);
WriteAsOperandInternal(Out, CS->getOperand(i),
PrintName, TypeTable, Machine);
}
- if (N > 2) Indent.resize(Indent.size() - 4);
}
Out << " }";