[llvm-commits] CVS: llvm/lib/CodeGen/AsmPrinter.cpp
Jeff Cohen
jeffc at jolt-lang.org
Mon May 1 20:46:26 PDT 2006
Changes in directory llvm/lib/CodeGen:
AsmPrinter.cpp updated: 1.61 -> 1.62
---
Log message:
De-virtualize EmitZeroes.
---
Diffs of the changes: (+7 -3)
AsmPrinter.cpp | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
Index: llvm/lib/CodeGen/AsmPrinter.cpp
diff -u llvm/lib/CodeGen/AsmPrinter.cpp:1.61 llvm/lib/CodeGen/AsmPrinter.cpp:1.62
--- llvm/lib/CodeGen/AsmPrinter.cpp:1.61 Mon May 1 20:16:28 2006
+++ llvm/lib/CodeGen/AsmPrinter.cpp Mon May 1 22:46:13 2006
@@ -37,6 +37,7 @@
InlineAsmStart("#APP\n\t"),
InlineAsmEnd("\t#NO_APP\n"),
ZeroDirective("\t.zero\t"),
+ ZeroDirectiveSuffix(0),
AsciiDirective("\t.ascii\t"),
AscizDirective("\t.asciz\t"),
Data8bitsDirective("\t.byte\t"),
@@ -240,9 +241,12 @@
///
void AsmPrinter::EmitZeros(uint64_t NumZeros) const {
if (NumZeros) {
- if (ZeroDirective)
- O << ZeroDirective << NumZeros << "\n";
- else {
+ if (ZeroDirective) {
+ O << ZeroDirective << NumZeros;
+ if (ZeroDirectiveSuffix)
+ O << ZeroDirectiveSuffix;
+ O << "\n";
+ } else {
for (; NumZeros; --NumZeros)
O << Data8bitsDirective << "0\n";
}
More information about the llvm-commits
mailing list