[llvm-commits] [llvm] r78428 - in /llvm/trunk: include/llvm/CodeGen/AsmPrinter.h include/llvm/Target/TargetAsmInfo.h lib/CodeGen/AsmPrinter/AsmPrinter.cpp lib/Target/TargetAsmInfo.cpp
Chris Lattner
sabre at nondot.org
Fri Aug 7 16:16:27 PDT 2009
Author: lattner
Date: Fri Aug 7 18:16:27 2009
New Revision: 78428
URL: http://llvm.org/viewvc/llvm-project?rev=78428&view=rev
Log:
remove a bunch of now-dead crud from the asmprinter and TAI interfaces.
Modified:
llvm/trunk/include/llvm/CodeGen/AsmPrinter.h
llvm/trunk/include/llvm/Target/TargetAsmInfo.h
llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/trunk/lib/Target/TargetAsmInfo.cpp
Modified: llvm/trunk/include/llvm/CodeGen/AsmPrinter.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/AsmPrinter.h?rev=78428&r1=78427&r2=78428&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/AsmPrinter.h (original)
+++ llvm/trunk/include/llvm/CodeGen/AsmPrinter.h Fri Aug 7 18:16:27 2009
@@ -327,19 +327,6 @@
void EmitComments(const MCInst &MI) const;
protected:
- /// 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 getOperandColumn(int operand) const;
-
- /// 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 PadToColumn(unsigned Operand) const;
-
/// EmitZeros - Emit a block of zeros.
///
void EmitZeros(uint64_t NumZeros, unsigned AddrSpace = 0) const;
Modified: llvm/trunk/include/llvm/Target/TargetAsmInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetAsmInfo.h?rev=78428&r1=78427&r2=78428&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Target/TargetAsmInfo.h (original)
+++ llvm/trunk/include/llvm/Target/TargetAsmInfo.h Fri Aug 7 18:16:27 2009
@@ -72,14 +72,6 @@
/// assembler.
const char *CommentString; // Defaults to "#"
- /// FirstOperandColumn - The output column where the first operand
- /// should be printed
- unsigned FirstOperandColumn; // Defaults to 0 (ignored)
-
- /// MaxOperandLength - The maximum length of any printed asm
- /// operand
- unsigned MaxOperandLength; // Defaults to 0 (ignored)
-
/// GlobalPrefix - If this is set to a non-empty string, it is prepended
/// onto all global symbols. This is often used for "_" or ".".
const char *GlobalPrefix; // Defaults to ""
@@ -361,12 +353,6 @@
const char *getCommentString() const {
return CommentString;
}
- unsigned getFirstOperandColumn() const {
- return FirstOperandColumn;
- }
- unsigned getMaxOperandLength() const {
- return MaxOperandLength;
- }
const char *getGlobalPrefix() const {
return GlobalPrefix;
}
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp?rev=78428&r1=78427&r2=78428&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp Fri Aug 7 18:16:27 2009
@@ -783,38 +783,6 @@
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 {
Modified: llvm/trunk/lib/Target/TargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetAsmInfo.cpp?rev=78428&r1=78427&r2=78428&view=diff
==============================================================================
--- llvm/trunk/lib/Target/TargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/TargetAsmInfo.cpp Fri Aug 7 18:16:27 2009
@@ -26,8 +26,6 @@
SeparatorChar = ';';
CommentColumn = 60;
CommentString = "#";
- FirstOperandColumn = 0;
- MaxOperandLength = 0;
GlobalPrefix = "";
PrivateGlobalPrefix = ".";
LinkerPrivateGlobalPrefix = "";
More information about the llvm-commits
mailing list