Simplify operand padding by keying off tabs in the asm stream. If
authorDavid Greene <greened@obbligato.org>
Fri, 31 Jul 2009 21:57:10 +0000 (21:57 +0000)
committerDavid Greene <greened@obbligato.org>
Fri, 31 Jul 2009 21:57:10 +0000 (21:57 +0000)
commit81bcae5fda609849a50f1fb4ab323c16d173cba2
tree776790dda53f5fdddace3a9d8a6168597718a7d1
parent9ee33ca28e1606306da77f4dc68ac17dc6081384
Simplify operand padding by keying off tabs in the asm stream.  If
padding is disabled, tabs get replaced by spaces except in the case of
the first operand, where the tab is output to line up the operands after
the mnemonics.

Add some better comments and eliminate redundant code.

Fix some testcases to not assume tabs.

llvm-svn: 77740
llvm/include/llvm/CodeGen/AsmPrinter.h
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/test/CodeGen/X86/2009-04-17-tls-fast.ll
llvm/test/CodeGen/X86/tls1-pic.ll
llvm/test/CodeGen/X86/tls2-pic.ll
llvm/test/CodeGen/X86/tls3-pic.ll
llvm/test/CodeGen/X86/tls4-pic.ll
llvm/utils/TableGen/AsmWriterEmitter.cpp