De-virtualize EmitZeroes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28046 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jeff Cohen
2006-05-02 03:46:13 +00:00
parent 4f1ea1e9d9
commit c6a057b04d
4 changed files with 11 additions and 12 deletions

View File

@@ -28,7 +28,8 @@ X86IntelAsmPrinter::X86IntelAsmPrinter(std::ostream &O, X86TargetMachine &TM)
GlobalPrefix = "_";
PrivateGlobalPrefix = "$";
AlignDirective = "\talign\t";
ZeroDirective = 0;
ZeroDirective = "\tdb\t";
ZeroDirectiveSuffix = " dup(0)";
AsciiDirective = "\tdb\t";
AscizDirective = 0;
Data8bitsDirective = "\t.db\t";
@@ -472,12 +473,6 @@ void X86IntelAsmPrinter::SwitchSection(const char *NewSection,
}
}
void X86IntelAsmPrinter::EmitZeros(uint64_t NumZeros) const {
if (NumZeros) {
O << "\tdb " << NumZeros << " dup(0)\n";
}
}
void X86IntelAsmPrinter::EmitString(const ConstantArray *CVA) const {
unsigned NumElts = CVA->getNumOperands();
if (NumElts) {