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)
commitbef8768bd0576eec0470a80e3039cd5d1fd50c6b
treecdbbfbd8dc140331cb27e6ee91ae5350a4fc9b05
parent76c4d7696c1eb566d53467a76024c5fdadd448e4
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77740 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/AsmPrinter.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
test/CodeGen/X86/2009-04-17-tls-fast.ll
test/CodeGen/X86/tls1-pic.ll
test/CodeGen/X86/tls2-pic.ll
test/CodeGen/X86/tls3-pic.ll
test/CodeGen/X86/tls4-pic.ll
utils/TableGen/AsmWriterEmitter.cpp