diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-07 23:16:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-07 23:16:27 +0000 |
commit | e35472e3a948a0b2e71e18c2c7ad781216e50a43 (patch) | |
tree | ab8909bc1dc616c58ba8e2dfa72d1adb2543b4c4 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | 2d423d5a9591397aeaf0fdbdd2c0ddc8da28b0c3 (diff) | |
download | bcm5719-llvm-e35472e3a948a0b2e71e18c2c7ad781216e50a43.tar.gz bcm5719-llvm-e35472e3a948a0b2e71e18c2c7ad781216e50a43.zip |
remove a bunch of now-dead crud from the asmprinter and TAI interfaces.
llvm-svn: 78428
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 15b3a6dc4d2..433590c7f99 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -783,38 +783,6 @@ void AsmPrinter::EmitAlignment(unsigned NumBits, const GlobalValue *GV, O << '\n'; } -/// getOperandColumn - Return the output column number (zero-based) -/// for operand % "operand." If TargetAsmInfo has FirstOperandColumn -/// == 0 or MaxOperandLength == 0, return 0, meaning column alignment -/// is disabled. -unsigned AsmPrinter::getOperandColumn(int operand) const { - if (TAI->getFirstOperandColumn() > 0 && TAI->getMaxOperandLength() > 0) - return TAI->getFirstOperandColumn() + - (TAI->getMaxOperandLength()+1)*(operand-1); - return 0; -} - -/// PadToColumn - This gets called every time a tab is emitted. If -/// column padding is turned on, we replace the tab with the -/// appropriate amount of padding. If not, we replace the tab with a -/// space, except for the first operand so that initial operands are -/// always lined up by tabs. -void AsmPrinter::PadToColumn(unsigned Operand) const { - if (getOperandColumn(Operand) > 0) { - O.PadToColumn(getOperandColumn(Operand), 1); - } - else { - if (Operand == 1) { - // Emit the tab after the mnemonic. - O << '\t'; - } - else { - // Replace the tab with a space. - O << ' '; - } - } -} - /// EmitZeros - Emit a block of zeros. /// void AsmPrinter::EmitZeros(uint64_t NumZeros, unsigned AddrSpace) const { |