Use EmitAlignment consistently

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54456 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Anton Korobeynikov 2008-08-07 09:53:38 +00:00
parent 2a166e9739
commit fcd99bb428
3 changed files with 4 additions and 6 deletions

View File

@ -326,7 +326,7 @@ void IA64AsmPrinter::printModuleLevelGV(const GlobalVariable* GVar) {
assert(0 && "Unknown linkage type!");
}
EmitAlignment(Align);
EmitAlignment(Align, GVar);
if (TAI->hasDotTypeDotSizeDirective()) {
O << "\t.type " << name << ",@object\n";

View File

@ -534,7 +534,7 @@ printModuleLevelGV(const GlobalVariable* GVar) {
// 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 @@ printModuleLevelGV(const GlobalVariable* GVar) {
assert(0 && "Unknown linkage type!");
}
if (Align)
O << "\t.align " << Align << '\n';
EmitAlignment(Align, GVar);
if (TAI->hasDotTypeDotSizeDirective() && printSizeAndType) {
O << "\t.type " << name << ",@object\n";

View File

@ -299,8 +299,7 @@ void SparcAsmPrinter::printModuleLevelGV(const GlobalVariable* GVar) {
assert(0 && "Unknown linkage type!");
}
if (Align)
O << "\t.align " << Align << '\n';
EmitAlignment(Align, GVar);
if (TAI->hasDotTypeDotSizeDirective()) {
O << "\t.type " << name << ",#object\n";