[llvm-commits] [llvm] r54456 - in /llvm/trunk/lib/Target: IA64/IA64AsmPrinter.cpp Mips/MipsAsmPrinter.cpp Sparc/SparcAsmPrinter.cpp
Anton Korobeynikov
asl at math.spbu.ru
Thu Aug 7 02:53:38 PDT 2008
Author: asl
Date: Thu Aug 7 04:53:38 2008
New Revision: 54456
URL: http://llvm.org/viewvc/llvm-project?rev=54456&view=rev
Log:
Use EmitAlignment consistently
Modified:
llvm/trunk/lib/Target/IA64/IA64AsmPrinter.cpp
llvm/trunk/lib/Target/Mips/MipsAsmPrinter.cpp
llvm/trunk/lib/Target/Sparc/SparcAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/IA64/IA64AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/IA64/IA64AsmPrinter.cpp?rev=54456&r1=54455&r2=54456&view=diff
==============================================================================
--- llvm/trunk/lib/Target/IA64/IA64AsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/IA64/IA64AsmPrinter.cpp Thu Aug 7 04:53:38 2008
@@ -326,7 +326,7 @@
assert(0 && "Unknown linkage type!");
}
- EmitAlignment(Align);
+ EmitAlignment(Align, GVar);
if (TAI->hasDotTypeDotSizeDirective()) {
O << "\t.type " << name << ", at object\n";
Modified: llvm/trunk/lib/Target/Mips/MipsAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsAsmPrinter.cpp?rev=54456&r1=54455&r2=54456&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsAsmPrinter.cpp Thu Aug 7 04:53:38 2008
@@ -534,7 +534,7 @@
// Fall Through
case GlobalValue::InternalLinkage:
if (CVA && CVA->isCString())
- printSizeAndType = false;
+ printSizeAndType = false;
break;
case GlobalValue::GhostLinkage:
cerr << "Should not have any unmaterialized functions!\n";
@@ -549,8 +549,7 @@
assert(0 && "Unknown linkage type!");
}
- if (Align)
- O << "\t.align " << Align << '\n';
+ EmitAlignment(Align, GVar);
if (TAI->hasDotTypeDotSizeDirective() && printSizeAndType) {
O << "\t.type " << name << ", at object\n";
Modified: llvm/trunk/lib/Target/Sparc/SparcAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/SparcAsmPrinter.cpp?rev=54456&r1=54455&r2=54456&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Sparc/SparcAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/Sparc/SparcAsmPrinter.cpp Thu Aug 7 04:53:38 2008
@@ -299,8 +299,7 @@
assert(0 && "Unknown linkage type!");
}
- if (Align)
- O << "\t.align " << Align << '\n';
+ EmitAlignment(Align, GVar);
if (TAI->hasDotTypeDotSizeDirective()) {
O << "\t.type " << name << ",#object\n";
More information about the llvm-commits
mailing list