aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/AsmPrinter/AsmPrinter.cpp32
-rw-r--r--lib/Target/TargetAsmInfo.cpp2
2 files changed, 0 insertions, 34 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 15b3a6dc4d..433590c7f9 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/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 {
diff --git a/lib/Target/TargetAsmInfo.cpp b/lib/Target/TargetAsmInfo.cpp
index 5f20ea0fc1..b59e140a12 100644
--- a/lib/Target/TargetAsmInfo.cpp
+++ b/lib/Target/TargetAsmInfo.cpp
@@ -26,8 +26,6 @@ TargetAsmInfo::TargetAsmInfo() {
SeparatorChar = ';';
CommentColumn = 60;
CommentString = "#";
- FirstOperandColumn = 0;
- MaxOperandLength = 0;
GlobalPrefix = "";
PrivateGlobalPrefix = ".";
LinkerPrivateGlobalPrefix = "";