[llvm-commits] CVS: llvm/lib/Target/X86/X86IntelAsmPrinter.cpp X86IntelAsmPrinter.h
Jeff Cohen
jeffc at jolt-lang.org
Mon May 1 20:46:27 PDT 2006
Changes in directory llvm/lib/Target/X86:
X86IntelAsmPrinter.cpp updated: 1.33 -> 1.34
X86IntelAsmPrinter.h updated: 1.17 -> 1.18
---
Log message:
De-virtualize EmitZeroes.
---
Diffs of the changes: (+2 -8)
X86IntelAsmPrinter.cpp | 9 ++-------
X86IntelAsmPrinter.h | 1 -
2 files changed, 2 insertions(+), 8 deletions(-)
Index: llvm/lib/Target/X86/X86IntelAsmPrinter.cpp
diff -u llvm/lib/Target/X86/X86IntelAsmPrinter.cpp:1.33 llvm/lib/Target/X86/X86IntelAsmPrinter.cpp:1.34
--- llvm/lib/Target/X86/X86IntelAsmPrinter.cpp:1.33 Mon May 1 22:11:50 2006
+++ llvm/lib/Target/X86/X86IntelAsmPrinter.cpp Mon May 1 22:46:13 2006
@@ -28,7 +28,8 @@
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::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) {
Index: llvm/lib/Target/X86/X86IntelAsmPrinter.h
diff -u llvm/lib/Target/X86/X86IntelAsmPrinter.h:1.17 llvm/lib/Target/X86/X86IntelAsmPrinter.h:1.18
--- llvm/lib/Target/X86/X86IntelAsmPrinter.h:1.17 Mon May 1 22:11:50 2006
+++ llvm/lib/Target/X86/X86IntelAsmPrinter.h Mon May 1 22:46:13 2006
@@ -93,7 +93,6 @@
bool doFinalization(Module &M);
virtual void SwitchSection(const char *NewSection, const GlobalValue *GV);
- virtual void EmitZeros(uint64_t NumZeros) const;
virtual void EmitString(const ConstantArray *CVA) const;
};
More information about the llvm-commits
mailing list