remove MAI::ZeroDirectiveSuffix, which is only used by MASM,

which we don't support anymore.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93886 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2010-01-19 18:37:01 +00:00
parent e45ab8a0a9
commit f03ffd13f8
4 changed files with 6 additions and 16 deletions

View File

@@ -113,7 +113,6 @@ namespace llvm {
/// "\t.zero\t" and "\t.space\t". If this is set to null, the /// "\t.zero\t" and "\t.space\t". If this is set to null, the
/// Data*bitsDirective's will be used to emit zero bytes. /// Data*bitsDirective's will be used to emit zero bytes.
const char *ZeroDirective; // Defaults to "\t.zero\t" const char *ZeroDirective; // Defaults to "\t.zero\t"
const char *ZeroDirectiveSuffix; // Defaults to ""
/// AsciiDirective - This directive allows emission of an ascii string with /// AsciiDirective - This directive allows emission of an ascii string with
/// the standard C escape characters embedded into it. /// the standard C escape characters embedded into it.
@@ -375,9 +374,6 @@ namespace llvm {
const char *getZeroDirective() const { const char *getZeroDirective() const {
return ZeroDirective; return ZeroDirective;
} }
const char *getZeroDirectiveSuffix() const {
return ZeroDirectiveSuffix;
}
const char *getAsciiDirective() const { const char *getAsciiDirective() const {
return AsciiDirective; return AsciiDirective;
} }

View File

@@ -916,18 +916,14 @@ void AsmPrinter::EmitAlignment(unsigned NumBits, const GlobalValue *GV,
/// EmitZeros - Emit a block of zeros. /// EmitZeros - Emit a block of zeros.
/// ///
void AsmPrinter::EmitZeros(uint64_t NumZeros, unsigned AddrSpace) const { void AsmPrinter::EmitZeros(uint64_t NumZeros, unsigned AddrSpace) const {
if (NumZeros) { if (NumZeros == 0) return;
if (MAI->getZeroDirective()) { if (MAI->getZeroDirective()) {
O << MAI->getZeroDirective() << NumZeros; O << MAI->getZeroDirective() << NumZeros << '\n';
if (MAI->getZeroDirectiveSuffix())
O << MAI->getZeroDirectiveSuffix();
O << '\n';
} else { } else {
for (; NumZeros; --NumZeros) for (; NumZeros; --NumZeros)
O << MAI->getData8bitsDirective(AddrSpace) << "0\n"; O << MAI->getData8bitsDirective(AddrSpace) << "0\n";
} }
} }
}
// Print out the specified constant, without a storage class. Only the // Print out the specified constant, without a storage class. Only the
// constants valid in constant expressions can occur here. // constants valid in constant expressions can occur here.

View File

@@ -37,7 +37,6 @@ MCAsmInfo::MCAsmInfo() {
AllowQuotesInName = false; AllowQuotesInName = false;
AllowNameToStartWithDigit = false; AllowNameToStartWithDigit = false;
ZeroDirective = "\t.zero\t"; ZeroDirective = "\t.zero\t";
ZeroDirectiveSuffix = 0;
AsciiDirective = "\t.ascii\t"; AsciiDirective = "\t.ascii\t";
AscizDirective = "\t.asciz\t"; AscizDirective = "\t.asciz\t";
Data8bitsDirective = "\t.byte\t"; Data8bitsDirective = "\t.byte\t";

View File

@@ -109,7 +109,6 @@ X86WinMCAsmInfo::X86WinMCAsmInfo(const Triple &Triple) {
PrivateGlobalPrefix = "$"; PrivateGlobalPrefix = "$";
AlignDirective = "\tALIGN\t"; AlignDirective = "\tALIGN\t";
ZeroDirective = "\tdb\t"; ZeroDirective = "\tdb\t";
ZeroDirectiveSuffix = " dup(0)";
AsciiDirective = "\tdb\t"; AsciiDirective = "\tdb\t";
AscizDirective = 0; AscizDirective = 0;
Data8bitsDirective = "\tdb\t"; Data8bitsDirective = "\tdb\t";