aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-08-13 01:41:52 +0000
committerDan Gohman <gohman@apple.com>2009-08-13 01:41:52 +0000
commit01889caf73a2faa3b77142851faa09abad5c73b0 (patch)
tree96656893b1e7fc0ff558bfa3c2faf267eff649e9 /lib/VMCore
parentcf20ac4fd12ea3510a8f32a24fff69eebe7b6f4a (diff)
downloadexternal_llvm-01889caf73a2faa3b77142851faa09abad5c73b0.zip
external_llvm-01889caf73a2faa3b77142851faa09abad5c73b0.tar.gz
external_llvm-01889caf73a2faa3b77142851faa09abad5c73b0.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/VMCore')
-rw-r--r--lib/VMCore/AsmWriter.cpp8
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);