diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-01-19 18:37:01 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-01-19 18:37:01 +0000 |
| commit | 9c31b0c695f189a29e84c68b3cfc307fd17c268d (patch) | |
| tree | 219205e174d6a5511c240825371061ffcd62fc9e /llvm/lib | |
| parent | 04770f2aa13bf1e2503a9737d1e4bdad3d721f1c (diff) | |
| download | bcm5719-llvm-9c31b0c695f189a29e84c68b3cfc307fd17c268d.tar.gz bcm5719-llvm-9c31b0c695f189a29e84c68b3cfc307fd17c268d.zip | |
remove MAI::ZeroDirectiveSuffix, which is only used by MASM,
which we don't support anymore.
llvm-svn: 93886
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 16 | ||||
| -rw-r--r-- | llvm/lib/MC/MCAsmInfo.cpp | 1 | ||||
| -rw-r--r-- | llvm/lib/Target/X86/X86MCAsmInfo.cpp | 1 |
3 files changed, 6 insertions, 12 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 9da8a29ffed..c22e501f53f 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -916,16 +916,12 @@ void AsmPrinter::EmitAlignment(unsigned NumBits, const GlobalValue *GV, /// EmitZeros - Emit a block of zeros. /// void AsmPrinter::EmitZeros(uint64_t NumZeros, unsigned AddrSpace) const { - if (NumZeros) { - if (MAI->getZeroDirective()) { - O << MAI->getZeroDirective() << NumZeros; - if (MAI->getZeroDirectiveSuffix()) - O << MAI->getZeroDirectiveSuffix(); - O << '\n'; - } else { - for (; NumZeros; --NumZeros) - O << MAI->getData8bitsDirective(AddrSpace) << "0\n"; - } + if (NumZeros == 0) return; + if (MAI->getZeroDirective()) { + O << MAI->getZeroDirective() << NumZeros << '\n'; + } else { + for (; NumZeros; --NumZeros) + O << MAI->getData8bitsDirective(AddrSpace) << "0\n"; } } diff --git a/llvm/lib/MC/MCAsmInfo.cpp b/llvm/lib/MC/MCAsmInfo.cpp index 731ccf955bb..cc036141574 100644 --- a/llvm/lib/MC/MCAsmInfo.cpp +++ b/llvm/lib/MC/MCAsmInfo.cpp @@ -37,7 +37,6 @@ MCAsmInfo::MCAsmInfo() { AllowQuotesInName = false; AllowNameToStartWithDigit = false; ZeroDirective = "\t.zero\t"; - ZeroDirectiveSuffix = 0; AsciiDirective = "\t.ascii\t"; AscizDirective = "\t.asciz\t"; Data8bitsDirective = "\t.byte\t"; diff --git a/llvm/lib/Target/X86/X86MCAsmInfo.cpp b/llvm/lib/Target/X86/X86MCAsmInfo.cpp index 9d7e66debb9..001ce807286 100644 --- a/llvm/lib/Target/X86/X86MCAsmInfo.cpp +++ b/llvm/lib/Target/X86/X86MCAsmInfo.cpp @@ -109,7 +109,6 @@ X86WinMCAsmInfo::X86WinMCAsmInfo(const Triple &Triple) { PrivateGlobalPrefix = "$"; AlignDirective = "\tALIGN\t"; ZeroDirective = "\tdb\t"; - ZeroDirectiveSuffix = " dup(0)"; AsciiDirective = "\tdb\t"; AscizDirective = 0; Data8bitsDirective = "\tdb\t"; |

