diff options
author | Dan Gohman <gohman@apple.com> | 2009-08-13 01:41:52 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-08-13 01:41:52 +0000 |
commit | 661d7d426acf40a7fa63bc3e53236d509cd0c9fb (patch) | |
tree | 96656893b1e7fc0ff558bfa3c2faf267eff649e9 /lib | |
parent | 2aa282f4941f44996dc3e56f658a7a932dfb6531 (diff) | |
download | external_llvm-661d7d426acf40a7fa63bc3e53236d509cd0c9fb.zip external_llvm-661d7d426acf40a7fa63bc3e53236d509cd0c9fb.tar.gz external_llvm-661d7d426acf40a7fa63bc3e53236d509cd0c9fb.tar.bz2 |
Change the indentation for LLVM Assembly files from 1 tab to 2 spaces.
This is vaguely consistent with LLVM's own source code, but more
importantly it lets more lines stay within 80 columns.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78879 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index c20cf46..5cd039e 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -1729,7 +1729,7 @@ void AssemblyWriter::printInstruction(const Instruction &I) { if (AnnotationWriter) AnnotationWriter->emitInstructionAnnot(&I, Out); // Print out indentation for an instruction. - Out << '\t'; + Out << " "; // Print out name if it exists... if (I.hasName()) { @@ -1785,12 +1785,12 @@ void AssemblyWriter::printInstruction(const Instruction &I) { Out << " ["; for (unsigned op = 2, Eop = I.getNumOperands(); op < Eop; op += 2) { - Out << "\n\t\t"; + Out << "\n "; writeOperand(I.getOperand(op ), true); Out << ", "; writeOperand(I.getOperand(op+1), true); } - Out << "\n\t]"; + Out << "\n ]"; } else if (isa<PHINode>(I)) { Out << ' '; TypePrinter.print(I.getType(), Out); @@ -1907,7 +1907,7 @@ void AssemblyWriter::printInstruction(const Instruction &I) { if (PAL.getFnAttributes() != Attribute::None) Out << ' ' << Attribute::getAsString(PAL.getFnAttributes()); - Out << "\n\t\t\tto "; + Out << "\n to "; writeOperand(II->getNormalDest(), true); Out << " unwind "; writeOperand(II->getUnwindDest(), true); |